WaitForAnimationEvent - ObjectReference

Revision as of 18:47, 16 October 2016 by imported>Qazaaq (animation category)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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