animationState: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Bot: Reverted to revision 109862 by killzone_kid on 2018-10-20T21:34:06Z)
m (template:command argument fix)
Line 9: Line 9:
____________________________________________________________________________________________
____________________________________________________________________________________________


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


| '''animationState''' unitName |= Syntax
| '''animationState''' unitName |SYNTAX=


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


| [[String]] |= Return value
| [[String]] |RETURNVALUE=
____________________________________________________________________________________________
____________________________________________________________________________________________


Line 23: Line 23:
| 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


| [[switchMove]], [[playMove]], [[BIS_fnc_ambientAnimGetParams]] |= See also
| [[switchMove]], [[playMove]], [[BIS_fnc_ambientAnimGetParams]] |SEEALSO=


}}
}}

Revision as of 12:25, 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