Mod:Creation Kit/WaitForAnimationEvent - ObjectReference

Member of: Mod:Creation Kit/ObjectReference Script

Waits for the specified animation event from this object to happen before returning.

Syntax
bool Function WaitForAnimationEvent(string asEventName) native

Parameters

 * asEventName: The event to wait for

Return Value
True if the event happened, false if the animation graph unloaded before the event was sent.

Examples
CoolThing.WaitForAnimationEvent("done")
 * Wait for the done event to happen before continuing