animationState: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (template:command argument fix)
m (template:command argument fix)
Line 14: Line 14:
| '''animationState''' unitName |SYNTAX=
| '''animationState''' unitName |SYNTAX=


|p1= unitName: [[Object]] |= Parameter 1
|p1= unitName: [[Object]] |PARAMETER1=


| [[String]] |RETURNVALUE=
| [[String]] |RETURNVALUE=
____________________________________________________________________________________________
____________________________________________________________________________________________


|x1= <code>_state = [[animationState]] [[player]];</code> |= Example 1
|x1= <code>_state = [[animationState]] [[player]];</code> |EXAMPLE1=  
____________________________________________________________________________________________
____________________________________________________________________________________________
| mp = 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. |= Multiplayer
| mp = 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. |= Multiplayer

Revision as of 15:28, 7 April 2019

-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