animationState: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
(see also)
m (Bot: Replacing category Scripting Commands Arma 3 with Arma 3: Scripting Commands)
Line 43: Line 43:
[[Category:Scripting Commands|ANIMATIONSTATE]]
[[Category:Scripting Commands|ANIMATIONSTATE]]
[[Category:Scripting Commands ArmA|ANIMATIONSTATE]]
[[Category:Scripting Commands ArmA|ANIMATIONSTATE]]
[[Category:Command_Group:_System_Commands|{{uc:{{PAGENAME}}}}]]
[[Category:Command Group: System Commands|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands ArmA2|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands ArmA2|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands Arma 3|{{uc:{{PAGENAME}}}}]]
[[Category:Arma 3: Scripting Commands]]
[[Category:Scripting_Commands_Take_On_Helicopters|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands Take On Helicopters|{{uc:{{PAGENAME}}}}]]

Revision as of 16:37, 3 December 2018

-wrong parameter ("Arma") defined!-1.00
Hover & click on the images for description

Description

Description:
Returns the name of a unit's current primary animation. Seems to be forced to lower case in Arma 3.
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.
Groups:
Uncategorised

Syntax

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

Examples

Example 1:
_state = animationState player;

Additional Information

See also:
switchMoveplayMoveBIS_fnc_ambientAnimGetParams

Notes

Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord or on the Forums.
Only post proven facts here! Add Note

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