Difference between revisions of "PlayIdle - Actor"

Jump to navigation Jump to search
159 bytes added ,  11:06, 22 December 2014
m
imported>Terra Nova2
m (Note on why some idles can't be played.)
imported>Terra Nova2
Line 27: Line 27:
<br>
<br>
<source lang="papyrus">
<source lang="papyrus">
Force Prisoner idle
 
;Force Prisoner idle. Below is how to properly setup an actor in the "bound hands" pose as seen in first scene of the game in helgen.
Idle property OffsetBoundStandingStart auto
Idle property OffsetBoundStandingStart auto


;Place this inside an Event, Function, etc
myActor.PlayIdle(OffsetBoundStandingStart)
myActor.PlayIdle(OffsetBoundStandingStart)
</source>
</source>
== Notes ==
== Notes ==
*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. Calling the PlayIdle function on the same actor, with the same idle again, will have the actor stop playing it (if it's a looped animation).
*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. Calling the PlayIdle function on the same actor, with the same idle again, will have the actor stop playing it (if it's a looped animation).
Anonymous user

Navigation menu