Osiris/API/PlayAnimation

From Divinity Engine Wiki
Revision as of 20:26, 14 October 2017 by Tinkerer (talk | contribs) (Documented PlayAnimation)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
Full Definition(s)
  • call PlayAnimation((GUIDSTRING)_SourceObject, (STRING)_Animation, (STRING)_Event)
Description

Plays the animation with simple name _Animation on _SourceObject. Once the animation has finished playing, the event _Event will be thrown.

Notes
  • We have a list of simple names of character animations and the playable races they are available to.
  • After a character animation has played, the character will return to its default idle position/state. This cannot be prevented from Osiris. If you use the behaviour script CharacterPlayAnimation call, you can avoid this by specifying 0 as the exitOnFinish parameter.
  • This call is only supported for non-looping animations.
  • While not officially supported, you can abort an ongoing animation by playing an invalid animation on an object (e.g., specify "" as _Animation). In fact, this is the only way to stop an ongoing animation.
See Also