[DEV SERVER] Loading description...
Caveats
CK Wiki - Notes
- The reference in question must have loaded 3D, otherwise this function will fail
- Aliases and quests will automatically unregister for this event when the quest stops.
- Active magic effects will automatically unregister when they are removed.
- Animation events are always unregistered when the target animation graph unloads. Anything registered will automaticallly get the OnAnimationEventUnregistered event when this happens.
Parameters
stringasEventName
CK Wiki Description
The event we want from the object.
Examples
; Listen for the "reset" animation event from the object we are attached to
If (!RegisterForAnimationEvent(self, "reset"))
Debug.Trace("Failed to register for event!")
EndIfAuto-Generated Example
ObjectReference myObjectReference__akSender
string myString__asEventName
bool returnedValue = myScriptObject__toCallFunctionOn.RegisterForAnimationEvent(myObjectReference__akSender, myString__asEventName)Related Pages
Additional References
View this function’s page on the Fallout 4 Creation Kit Wiki
