{"name":"getWeaponSway","operator":null,"title":"getWeaponSway","type":"command","url":"https://community.bistudio.com/wiki/getWeaponSway","revid":376211,"updated":"2025-09-15T15:00:52Z","groups":["Stamina System","Weapons"],"status":"ok","replaced_by":[],"games":[{"game":"arma3","name":"Arma 3","version":"1.62"}],"since":{"game":"arma3","name":"Arma 3","version":"1.62"},"arma3_since":"1.62","branch":null,"locality":{"argument":null,"effect":null,"server_exec":false},"exec":null,"description":"Returns current size of weapon sway of a given unit, in radians. This command may still return a value greater 0 even if sway was effectively set to 0 with `player setCustomAimCoef 0;`.","syntaxes":[{"syntax":"getWeaponSway unit","since":null,"effect":null,"exec":null,"params":[{"name":"unit","type":"Object","optional":false,"default":null,"description":null,"types":["Object"],"since":null,"text":"unit: Object"}],"returns":{"type":"Number","types":["Number"],"description":"weapon sway","text":"Number - weapon sway"},"form":"unary","operator":null,"left":null,"right":{"text":"unit","types":["Object"]}}],"examples":[{"text":"```sqf\n_sway = getWeaponSway player;\n```","code":["_sway = getWeaponSway player;"]}],"multiplayer":null,"problems":null,"aliases":[],"see_also":["weaponInertia","getCustomAimCoef"],"notes":[],"categories":["Arma 3: New Scripting Commands","Arma 3: Scripting Commands","Command Group: Stamina System","Command Group: Weapons","Introduced with Arma 3 version 1.62","Scripting Commands"]}