Caveats
CK Wiki - 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).
- Some idles cannot be played with this function if the idle has an associated special furniture and is not listed in the idle manager. To which other means to force a player to play such an idle is required.
- You cannot play an idle on an actor whose AI is disabled.
Parameters
IdleakIdle
CK Wiki Description
The idle to play on this actor.
Examples
No human-generated examples found for this function.
Auto-Generated Example
Idle myIdle__akIdle
bool returnedValue = myActor__toCallFunctionOn.PlayIdle(myIdle__akIdle)Related Pages
- Actor
- Actor.PlayIdleWithTarget(...)
- Idle
