Difference between revisions of "PlaySyncedAnimationAndWaitSS - ObjectReference"
Jump to navigation
Jump to search
imported>Plplecuyer (→Syntax) |
imported>Qazaaq (animation category) |
||
Line 2: | Line 2: | ||
[[Category:Papyrus]] | [[Category:Papyrus]] | ||
[[Category:Latent Functions]] | [[Category:Latent Functions]] | ||
[[Category:Animation]] | |||
'''Member of:''' [[ObjectReference Script]] | '''Member of:''' [[ObjectReference Script]] | ||
Latest revision as of 17:46, 16 October 2016
Member of: ObjectReference Script
Plays two animations at once and waits for behavior graph events from each. Note that if the first animation fails to fire, the second animation will still play, and the function will still return success. Also, if the first animation fails to play, it won't listen for the event from the first animation.
Syntax[edit | edit source]
bool Function PlaySyncedAnimationAndWaitSS(string asAnimation1, string asEvent1, ObjectReference akObj2, string asAnimation2, \
string asEvent2) native
Parameters[edit | edit source]
- asAnimation1: The animation to play on this object.
- asEvent1: The behavior graph event to listen for from this object.
- akObj2: The second object to play an animation on.
- asAnimation2: The animation to play on the second object.
- asEvent2: The behavior graph event to listen for from the other object.
Return Value[edit | edit source]
True if either of the animations are fired off (or both). Only returns false if both animations fail to start.
Examples[edit | edit source]
; Have Bob and Jane both play cheering animations at the same time, waiting for "done" from each
Bob.PlaySyncedAnimationAndWaitSS("cheer", "done", Jane, "cheer", "done")