Arma 3 Scripting

gestureState

  • Global argument
  • Arma 3 v2.06

Command · Markdown · JSON · original wiki page

Description

Returns the name of a unit's current gesture. Seems to be forced to lower case in Arma 3.

Note

This command is only for a man unit, other units such as animals cannot use this command.

Syntax

gestureState unitName

Parameters:

Returns: String - empty string if not available

Examples

Example 1

private _state = gestureState player;

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.

See also

switchAction · playAction · BIS_fnc_ambientAnimGetParams · animationState · getUnitMovesInfo