PlayIdle
< [[::Category:Functions|Category:Functions]]
A function included in the GECK version 1.1.0.36.
Description
PlayIdle causes the calling actor to play a specified idle animation.
Syntax
[Actor].PlayIdle IdleName:EditorID
Notes
- Calling playidle on the player directly is bugged, but you can use it on the player if the player's the implied reference of an actor effect's script, or if you pass the player to a local ref variable first and call playidle on that.
begin ScriptEffectUpdate playidle someIdle End
ref someRefVar Begin someBlock let someRefVar := playerref someRefVar.playidle someIdle End
- When the game is in "Flying Camera" mode, as triggered by ToggleFlyCam
- During the frame in which the player activated the scripted reference, and only if the scripted reference's default activation is not triggered. For example, the following code will cause the player to play the appropriate Brahmin Push when they activate the scripted reference:
Begin OnActivate player if IsPC1stPerson player.PlayIdle Loose1stPBrahminPush else player.Playidle Loose3rdPBrahminPush endif End