{"name":"setCompassDeclination","title":"setCompassDeclination","type":"command","url":"https://community.bistudio.com/wiki/setCompassDeclination","revid":377875,"updated":"2026-01-04T13:22:06Z","groups":["Interaction"],"status":"ok","games":{"arma3":"2.18"},"since":"arma3 2.18","arma3_since":"2.18","locality":{"effect":"local"},"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","params":[{"name":"angleRad","type":"Number","description":"Declination angle in radians. Use 0 to reset it to default.","type_expr":"Number"}],"returns":{"type":"Nothing","type_expr":"Nothing"},"form":"unary","right":{"text":"angleRad"}}],"examples":[{"code":["setCompassDeclination rad 10; // declination angle is 10 degrees"]}],"see_also":["setCompassOscillation"]}