PlayIdle
Revision as of 21:45, 19 August 2013 by imported>Shademe (Minor correction)
< [[::Category:Functions|Category:Functions]]
A function added by the Oblivion Script Extender.
Syntax:
(idlePlayed:bool) reference.PlayIdle idleAnim:ref forceIdle:bool
Attempts to make the calling actor play the specified idle animation. The animation must be one defined in the editor's Gameplay > Idle Animations window. Pass 1 for the forceIdle parameter to force the actor to play the idle regardless of any other animations currently playing.
Notes
- Directly using an idleAnim EditorID gives a compiler error (when not using the compiler override). You must, first, load the idleAnim form in a ref variable and use the ref in the function.