animationState

From Bohemia Interactive Community
Jump to: navigation, search
Introduced with Armed Assault version 1.00
  Arguments of this scripting command don't have to be local to the client the command is executed on

Click on the images for descriptions

Introduced in

Game:
Armed Assault
Version:
1.00

Description

Description:
Returns the name of a unit's current primary animation. Seems to be forced to lower case in Arma 3.

Syntax

Syntax:
animationState unitName
Parameters:
unitName: Object
Return Value:
String

Examples

Example 1:
_state = animationState player;

Additional Information

Multiplayer:
When executed on a client, this command only returns accurate results when the target unit is within sight of the client. When executed on a dedicated server, the returned value is accurate.
See also:
BIS_fnc_ambientAnimGetParams

Notes

Only post proven facts here. Report bugs on the feedback tracker. Use the talk page or the forums for discussions.
Add New Note | How To

Notes

Posted on August 22, 2014 - 23:30
ffur2007slx2_5
(A3 1.26) To sort animation state by keyword, use BIS_fnc_ambientAnimGetParams ("KNEEL" call BIS_fnc_ambientAnimGetParams) select 0; //return: ["amovpknlmstpslowwrfldnon"…] Useful keywords are: "STAND", "WATCH", "GUARD", "LISTEN_BRIEFING", "LEAN_ON_TABLE", "LEAN", "SIT_AT_TABLE", "KNEEL", "PRONE_INJURED", "BRIEFING" ect.

Bottom Section