WaitForAnimationEvent - ObjectReference

From the CreationKit Wiki
Jump to navigation Jump to search

Member of: ObjectReference Script

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

Syntax[edit | edit source]

bool Function WaitForAnimationEvent(string asEventName) native

Parameters[edit | edit source]

  • asEventName: The event to wait for

Return Value[edit | edit source]

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

Examples[edit | edit source]

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

See Also[edit | edit source]