setCompassOscillation: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "{{Command " to "{{RV|type=command ")
m (Text replacement - " | }}" to " }}")
Line 29: Line 29:


| [[visibleCompass]], [[shownCompass]], [[shownCuratorCompass]], [[showCompass]], [[showCuratorCompass]]
| [[visibleCompass]], [[shownCompass]], [[shownCuratorCompass]], [[showCompass]], [[showCuratorCompass]]
|
}}
}}



Revision as of 16:44, 7 February 2021

Hover & click on the images for description

Description

Description:
Description needed
Groups:
Interaction

Syntax

Syntax:
Syntax needed
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:
Return value needed

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

See also:
See also needed

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