animationState: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
(see also & note)
(forced to lower in arma 3)
Line 9: Line 9:
____________________________________________________________________________________________
____________________________________________________________________________________________


| Return the name of a unit's current primary animation. |= Description
| Return the name of a unit's current primary animation. Seems to be forced to lower case in Arma 3. |= Description
____________________________________________________________________________________________
____________________________________________________________________________________________



Revision as of 21:10, 25 February 2015

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

Description

Description:
Return 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:
String = animationState unitName
Parameters:
unitName: Object
Return Value:
String

Examples

Example 1:
_state = animationState player;

Additional Information

See also:
BIS_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