WaitForAnimationEvent - ObjectReference

From the CreationKit Wiki
Revision as of 14:53, 11 November 2011 by imported>Scornett (Reverted edits by Scornett-Bot (talk) to last revision by Jlundin)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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]