Difference between revisions of "PlayIdle - Actor"
Jump to navigation
Jump to search
imported>Vitamant m (1 revision: Clobber re-import by Henning) |
imported>Qazaaq m |
||
Line 1: | Line 1: | ||
[[Category:Scripting]] | [[Category:Scripting]] | ||
[[Category:Papyrus]] | [[Category:Papyrus]] | ||
[[Category:Animation]] | |||
'''Member of:''' [[Actor Script]] | '''Member of:''' [[Actor Script]] | ||
Latest revision as of 03:48, 25 October 2016
Member of: Actor Script
Plays the idle passed.
Syntax[edit | edit source]
bool Function PlayIdle(Idle akIdle) native
Parameters[edit | edit source]
- akIdle: The idle form to whose animation to play on this actor.
Return Value[edit | edit source]
True if the idle was successfully loaded and played, false otherwise.
Examples[edit | edit source]
; Start Hadvar's flute animation
if Hadvar.PlayIdle(fluteIdle)
Debug.Trace("Hadvar is playing his flute!")
else
Debug.Trace("Something went wrong")
endIf
Notes[edit | edit source]
Too many things can happen while you are attempting to play an idle, so make sure to gracefully handle all circumstances. Never use the structure "play idle, wait for event" - this will inevitably cause your script to get stuck forever when some other code or script overrules your idle.