Jump to content

Using Animation Events with Scripting. Help needed.


Recommended Posts

Hi.

 

First, the wiki says that in order to use OnAnimationEvent(), RegisterforAnimationEvent() is needed. But I have this script:

Scriptname SampleScript extends Quest

Actor Property PlayerRef Auto Const

Event OnAnimationEvent(ObjectReference akSource, string asEventName)
   if (akSource == PlayerRef) && (asEventName == "weaponfire")
     Debug.notification("FIRE")
   endIf
 debug.notification(asEventName)
endEvent

 

 

 

and it works. Is the wiki wrong? Am I understanding it wrong?

 

Second, it only seems to register for the weaponFire animation. I cannot for the life of me get it to trigger on any other animation.

 

Any idea why?

 

Thanks.

Edited by Haruochan1
Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...