WaitForAnimationEvent - ObjectReference

Member of: ObjectReference Script

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

SyntaxEdit

bool Function WaitForAnimationEvent(string asEventName) native

ParametersEdit

  • asEventName: The event to wait for

Return ValueEdit

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

ExamplesEdit

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

See AlsoEdit