- Found in:
- Vanilla
eventOnAnimationEvent(ObjectReferenceakSource, stringasEventName)
[DEV SERVER] Loading description...
Caveats
CK Wiki - Notes
- Aliases and quests will automatically unregister for this event when the quest stops. Active magic effects will automatically unregister when they are removed.
Parameters
stringasEventName
CK Wiki Description
The event that was received.
Examples
Function SomeFunction()
RegisterForAnimationEvent(JoeBob, "Reset") ; 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
endEventAuto-Generated Example
Scriptname MyCoolScript extends ScriptObject
event OnAnimationEvent(ObjectReference akSource, string asEventName)
Debug.trace("Event received - OnAnimationEvent: akSource = " + akSource + " asEventName = " + asEventName)
endEvent