setCompassDeclination: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
Line 8: Line 8:
|gr1= Interaction
|gr1= Interaction


|descr= Set the {{Link|https://en.wikipedia.org/wiki/Magnetic_declination|declination angle}} of player's compass, which is the difference between magnetic north and true north.
|descr= Sets the {{Link|https://en.wikipedia.org/wiki/Magnetic_declination|declination angle}} of player's compass, which is the difference between magnetic north and true north.


|s1= [[setCompassDeclination]] angleRad
|s1= [[setCompassDeclination]] angleRad

Revision as of 11:04, 25 January 2024

Hover & click on the images for description

Description

Description:
Sets the declination angle of player's compass, which is the difference between magnetic north and true north.
Groups:
Interaction

Syntax

Syntax:
setCompassDeclination angleRad
Parameters:
angleRad: Scalar - Declination angle in radians. Use 0 to reset it to default.
Return Value:
Nothing

Examples

Example 1:
setCompassDeclination rad 10; // declination angle is 10 degrees

Additional Information

See also:
setCompassOscillation

Notes

Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord or on the Forums.
Only post proven facts here! Add Note