OnAnimationEvent - Form
Revision as of 15:26, 18 October 2011 by imported>Rhavlovick (1 revision: Clobber re-import by Henning)
Member of: ActiveMagicEffect Script, Alias Script, and Form Script
Event called when the active magic effect/alias/form receives one of the animation events it was listening for.
Syntax
Event OnAnimationEvent(ObjectReference akSource, string asEventName)
Parameters
- akSource: The ObjectReference that sent the event.
- asEventName: The event that was received.
Examples
Function SomeFunction()
RegisterForAnimationEvent(JoeBob, "IdleFurnitureExit") ; Before we can use OnAnimationEvent we must register.
EndFunction
Event OnAnimationEvent(ObjectReference akSource, string asEventName)
if (akSource == self) && (asEventName == "Reset")
Debug.Trace("We got the reset animation graph event from ourselves that we were looking for!")
endIf
endEvent
Notes
- Aliases and quests will automatically unregister for this event when the quest stops. Active magic effects will automatically unregister when they are removed.
- This event is not relayed to any aliases or magic effects attached to the form.