setCompassOscillation

From Bohemia Interactive Community
Jump to: navigation, search
Introduced with Arma 3 version 0.50
  

Click on the images for descriptions

Introduced in

Game:
Arma 3
Version:
0.50

Description

Description:
This command sets random heading on the player's compass (both, in map and in 3D view) with given frequency, which is also randomised. To reset the compass back to defaults, execute: setCompassOscillation [-1, 0, 0];.

Syntax

Syntax:
setCompassOscillation [angle, frequencyMin, frequencyMax]
Parameters:
[angle, frequencyMin, frequencyMax]: Array
angle: Number - heading deviation angle in radians; the random angle will be picked up from [-angle...+angle] range.
frequencyMin: Number - lower bound of heading change in seconds
frequencyMax: Number - higher bound of heading change in seconds. The actual frequency is calculated similar to: _frequencyMin + random(_frequencyMax - _frequencyMin);
Return Value:
Nothing

Examples

Example 1:
Set compass to oscillate every second within -90/+90 degrees: setCompassOscillation [rad 90, 1, 1];
Example 2:
Change heading every 60 to 90 seconds: setCompassOscillation [rad 180, 60, 90];
Example 3:
Make compass go crazy: setCompassOscillation [rad 360, 0.1, 0.2];

Additional Information

Multiplayer:
-
See also:
visibleCompassshownCompassshownCuratorCompassshowCompassshowCuratorCompass

Notes

Only post proven facts here. Report bugs on the feedback tracker. Use the talk page or the forums for discussions.
Add New Note | How To

Notes

Bottom Section