{"name":"weaponInertia","operator":null,"title":"weaponInertia","type":"command","url":"https://community.bistudio.com/wiki/weaponInertia","revid":378476,"updated":"2026-04-24T11:32:50Z","groups":["Weapons"],"status":"ok","replaced_by":[],"games":[{"game":"arma3","name":"Arma 3","version":"1.48"}],"since":{"game":"arma3","name":"Arma 3","version":"1.48"},"arma3_since":"1.48","branch":null,"locality":{"argument":null,"effect":null,"server_exec":false},"exec":null,"description":"Returns current rate of how much the weapon view is distorted because of quick aiming.","syntaxes":[{"syntax":"weaponInertia 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":"Array with [x, y]","types":["Array"],"description":"x: Number - Amount of x-axis sway - y: Number - Amount of y-axis sway","text":"Array with [x, y]\n- x: Number - Amount of x-axis sway\n- y: Number - Amount of y-axis sway"},"form":"unary","operator":null,"left":null,"right":{"text":"unit","types":["Object"]}}],"examples":[{"text":"```sqf\n_inertia = weaponInertia player; //[-0.0126307,0.038023]\n```","code":["_inertia = weaponInertia player; //[-0.0126307,0.038023]"]}],"multiplayer":null,"problems":null,"aliases":[],"see_also":["getWeaponSway"],"notes":[],"categories":["Arma 3: New Scripting Commands","Arma 3: Scripting Commands","Command Group: Weapons","Introduced with Arma 3 version 1.48","Scripting Commands"]}