{"name":"setSystemOfUnits","operator":null,"title":"setSystemOfUnits","type":"command","url":"https://community.bistudio.com/wiki/setSystemOfUnits","revid":339090,"updated":"2023-04-26T10:54:08Z","groups":["System","Broken Commands"],"status":"broken","replaced_by":[],"games":[{"game":"arma3","name":"Arma 3","version":"0.50"}],"since":{"game":"arma3","name":"Arma 3","version":"0.50"},"arma3_since":"0.50","branch":null,"locality":{"argument":null,"effect":"local","server_exec":false},"exec":null,"description":"Set system of units. This will only impact gauges from advanced flight model.\n\n> [!IMPORTANT]\n> This command is buggy: any value other than 0 (metric) will display both units at the same time.","syntaxes":[{"syntax":"setSystemOfUnits value","since":null,"effect":null,"exec":null,"params":[{"name":"value","type":"Number","optional":false,"default":null,"description":"possible values are:\n- 0 - metric\n- 1 - mixed\n- 2 - imperial","types":["Number"],"since":null,"text":"value: Number - possible values are:\n- 0 - metric\n- 1 - mixed\n- 2 - imperial"}],"returns":{"type":"Nothing","types":["Nothing"],"description":null,"text":"Nothing"},"form":"unary","operator":null,"left":null,"right":{"text":"value","types":["Number"]}}],"examples":[{"text":"```sqf\nif (player in _myHelicopter) then { setSystemOfUnits 2; };\n```","code":["if (player in _myHelicopter) then { setSystemOfUnits 2; };"]}],"multiplayer":null,"problems":null,"aliases":[],"see_also":["Description.ext","Advanced Helicopter Flight Model in Arma3","systemOfUnits"],"notes":[],"categories":["Arma 3: New Scripting Commands","Arma 3: Scripting Commands","Command Group: Broken Commands","Command Group: System","Introduced with Arma 3 version 0.50","Scripting Commands","Scripting Commands: Local Effect"]}