animationState: Difference between revisions
Jump to navigation
Jump to search
m (template:command argument fix) |
No edit summary |
||
Line 47: | Line 47: | ||
[[Category:Scripting Commands Arma 3|{{uc:{{PAGENAME}}}}]] | [[Category:Scripting Commands Arma 3|{{uc:{{PAGENAME}}}}]] | ||
[[Category:Scripting_Commands_Take_On_Helicopters|{{uc:{{PAGENAME}}}}]] | [[Category:Scripting_Commands_Take_On_Helicopters|{{uc:{{PAGENAME}}}}]] | ||
<!-- CONTINUE Notes --> | |||
<dl class="command_description"> | |||
<dd class="notedate">Posted on August 13, 2019 - 07:44 (UTC)</dd> | |||
<dt class="note">[[User:POLPOX|POLPOX]]</dt> | |||
<dd class="note"> | |||
In case you need to get the animation name including upper cases: | |||
<code>configName (configFile >> getText (configFile >> "CfgVehicles" >> typeOf _unit >> "moves") >> "States" >> (animationState _unit)) //e.g. "AmovPercMstpSrasWrflDnon"</code> | |||
Opposite to regular animationState return value: | |||
<code>animationState _unit //e.g. "amovpercmstpsraswrfldnon"</code> | |||
</dd> | |||
</dl> | |||
<!-- DISCONTINUE Notes --> |
Revision as of 08:44, 13 August 2019
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
Examples
- Example 1:
_state = animationState player;
Additional Information
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
- Posted on August 13, 2019 - 07:44 (UTC)
- POLPOX
-
In case you need to get the animation name including upper cases:
configName (configFile >> getText (configFile >> "CfgVehicles" >> typeOf _unit >> "moves") >> "States" >> (animationState _unit)) //e.g. "AmovPercMstpSrasWrflDnon"
Opposite to regular animationState return value:animationState _unit //e.g. "amovpercmstpsraswrfldnon"