{"name":"setCompassDeclination","operator":null,"title":"setCompassDeclination","type":"command","url":"https://community.bistudio.com/wiki/setCompassDeclination","revid":377875,"updated":"2026-01-04T13:22:06Z","groups":["Interaction"],"status":"ok","replaced_by":[],"games":[{"game":"arma3","name":"Arma 3","version":"2.18"}],"since":{"game":"arma3","name":"Arma 3","version":"2.18"},"arma3_since":"2.18","branch":null,"locality":{"argument":null,"effect":"local","server_exec":false},"exec":null,"description":"Sets the [declination angle](https://en.wikipedia.org/wiki/Magnetic_declination) of player's compass, which is the difference between magnetic north and true north.","syntaxes":[{"syntax":"setCompassDeclination angleRad","since":null,"effect":null,"exec":null,"params":[{"name":"angleRad","type":"Number","optional":false,"default":null,"description":"Declination angle in radians. Use 0 to reset it to default.","types":["Number"],"since":null,"text":"angleRad: Number - Declination angle in radians. Use 0 to reset it to default."}],"returns":{"type":"Nothing","types":["Nothing"],"description":null,"text":"Nothing"},"form":"unary","operator":null,"left":null,"right":{"text":"angleRad","types":["Number"]}}],"examples":[{"text":"```sqf\nsetCompassDeclination rad 10; // declination angle is 10 degrees\n```","code":["setCompassDeclination rad 10; // declination angle is 10 degrees"]}],"multiplayer":null,"problems":null,"aliases":[],"see_also":["setCompassOscillation"],"notes":[],"categories":["Arma 3: New Scripting Commands","Arma 3: Scripting Commands","Command Group: Interaction","Introduced with Arma 3 version 2.18","Scripting Commands","Scripting Commands: Local Effect"]}