{"name":"gestureState","operator":null,"title":"gestureState","type":"command","url":"https://community.bistudio.com/wiki/gestureState","revid":352842,"updated":"2024-02-26T11:36:18Z","groups":["Animations"],"status":"ok","replaced_by":[],"games":[{"game":"arma3","name":"Arma 3","version":"2.06"}],"since":{"game":"arma3","name":"Arma 3","version":"2.06"},"arma3_since":"2.06","branch":null,"locality":{"argument":"global","effect":null,"server_exec":false},"exec":null,"description":"Returns the name of a unit's current gesture. Seems to be forced to lower case in Arma 3.\n\n> [!NOTE]\n> This command is only for a man unit, other units such as animals cannot use this command.","syntaxes":[{"syntax":"gestureState unitName","since":null,"effect":null,"exec":null,"params":[{"name":"unitName","type":"Object","optional":false,"default":null,"description":null,"types":["Object"],"since":null,"text":"unitName: Object"}],"returns":{"type":"String","types":["String"],"description":"empty string if not available","text":"String - empty string if not available"},"form":"unary","operator":null,"left":null,"right":{"text":"unitName","types":["Object"]}}],"examples":[{"text":"```sqf\nprivate _state = gestureState player;\n```","code":["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.","problems":null,"aliases":[],"see_also":["switchAction","playAction","BIS_fnc_ambientAnimGetParams","animationState","getUnitMovesInfo"],"notes":[],"categories":["Arma 3: New Scripting Commands","Arma 3: Scripting Commands","Command Group: Animations","Introduced with Arma 3 version 2.06","Scripting Commands"]}