I have been playing around withCurrently, there is no method to add [[ https://en.wikipedia.org/wiki/Magnetic_declination | Magnetic Declination ]] or any other custom declination for the compass item by scripting methods. I have tried to use [[ https://community.bistudio.com/wiki/setCompassOscillation | setCompassOscillation ]] to see if I would be able to use itin the hopes that it could be useful for this but unfortunately, because setCompassOscillation's first variable becomes random and is based on a variable timer, it cannot be used to set a controlled custom declination for a player compassheading for the compass.
Creating a script command called something like "setCompassDeclination" that modifies the compass heading similar to setCompassOscillation, but without the random flipping between negative and positive values or the variable timer would make this possible. I found that because setCompassOscillation's first variable becomes random and is based on a variable timerThat way, it is not useful for my use caseit could be used to set a negative (western) declination or a positive (eastern) declination.
Would it be possible to add a command called something like "setCompassDeclination" that behaves similarly to setCompassOscillation, but without the random flipping between negative and positive values or the variable timer? That waAlternatively, itsetCompassOscillation could be used to set a negative (western) declination or a positive (eastern) declination. have modified syntax to support compass headings that do not flip flop between two values randomly.
I would imagine the syntax would look something a bit like this:
Example 1: Set the compass to a -13 western declination.
```
setCompassDeclination [rad -13];
```
Example 2: Set the compass to a +15.5 eastern declination.
```
setCompassDeclination [rad 15.5];
```
Example 3: Set the compass to follow grid north (normal compass behavior).
```
setCompassDeclination [rad 0];
```
The only other thing I could think of to add going along with this is having a function to request what the current setCompassDeclination is returningThis, or a similar solution, would be able to be used to create a more authentic land navigation experience through modding and allow each terrain to have a different declination that players would have to compensate for by using real world land navigation skills.
Thank you for your time and consideration.