Page MenuHomeFeedback Tracker

Getter for value set by setCompassDeclination and setCompassOscillation
New, NormalPublic

Description

With 2.18 the commands setCompassDeclination and setCompassOscillation were introduced.
I have received a request for my mod "DUI - Squad Radar" to simulate the changes these two commands do. While looking up these new commands in the Biki, i noticed a lack of getter commands for these.

Examples how to use:

setCompassDeclination rad 90;
private _declination = deg getCompassDeclination;
systemChat str _declination;
// writes "90" into chat
setCompassOscillation [rad 90, 1, 2];
getCompassOscillation params ["_rad, _min, _max];
systemChat format ["%1 %2 %3", deg _rad, _min, _max];
// writes "90 1 2" into chat

Details

Severity
Feature
Resolution
Open
Reproducibility
N/A
Operating System
Windows 11 x64
Category
Scripting

Event Timeline

diwako created this task.Feb 20 2025, 1:36 PM