gestureState: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "\|seealso= *\[\[([^ ]+)\]\], \[\[([^ ]+)\]\]" to "|seealso= $1 $2")
m (Text replacement - "\|seealso= *\[\[([^ ]+)\]\], \[\[([^ ]+)\]\]" to "|seealso= $1 ")
Line 12: Line 12:


|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.
|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.
|seealso= [[switchAction]] [[playAction]] [[BIS_fnc_ambientAnimGetParams]], [[animationState]]
|seealso= [[switchAction]] [[playAction]] [[BIS_fnc_ambientAnimGetParams]] [[animationState]]


|s1= [[gestureState]] unitName
|s1= [[gestureState]] unitName

Revision as of 16:03, 20 January 2022

Hover & click on the images for description

Description

Description:
Returns the name of a unit's current gesture. Seems to be forced to lower case in Arma 3.
This command is only for a man unit, other units such as animals cannot use this command.
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:
Animations

Syntax

Syntax:
gestureState unitName
Parameters:
unitName: Object
Return Value:
String - "" if N/A.

Examples

Example 1:
_state = gestureState player;

Additional Information

See also:
switchAction playAction BIS_fnc_ambientAnimGetParams animationState

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