setCompassOscillation: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - " \| *(game[0-9]|version[0-9]|gr[0-9]|serverExec|mp|pr|descr|s[0-9]|p[0-9]{1,3}|r[0-9]|x1?[0-9]|seealso) *= +" to " |$1= ") |
No edit summary |
||
(12 intermediate revisions by 2 users not shown) | |||
Line 3: | Line 3: | ||
|game1= arma3 | |game1= arma3 | ||
|version1= 0.50 | |version1= 0.50 | ||
|eff= local | |||
|gr1= Interaction | |gr1= Interaction | ||
|descr= This command sets random heading on the player's compass (both | |descr= This command sets random heading on the player's compass (both in map and in 3D view) with given frequency, which is also randomised. | ||
|s1= | |s1= [[setCompassOscillation]] [angle, frequencyMin, frequencyMax] | ||
|p1= [angle | |p1= angle: [[Number]] - heading deviation angle in [[rad]]ians; the random angle will be picked up from {{hl|[-angle...+angle]}} range | ||
|p2= | |p2= frequencyMin: [[Number]] - lower bound of heading change in seconds | ||
|p3= | |p3= frequencyMax: [[Number]] - higher bound of heading change in seconds | ||
| | |r1= [[Nothing]] | ||
| | |x1= Set compass to oscillate every second within -90/+90 degrees: | ||
<sqf>setCompassOscillation [rad 90, 1, 1];</sqf> | |||
|x2= Change heading every 60 to 90 seconds: | |||
<sqf>setCompassOscillation [rad 180, 60, 90];</sqf> | |||
|x3= Make compass go crazy: | |||
<sqf>setCompassOscillation [rad 360, 0.1, 0.2];</sqf> | |||
| | |x4= Reset to default behaviour: | ||
<sqf>setCompassOscillation [-1, 0, 0];</sqf> | |||
</ | |||
|seealso= [[visibleCompass]] | |seealso= [[visibleCompass]] [[shownCompass]] [[shownCuratorCompass]] [[showCompass]] [[showCuratorCompass]] [[setCompassDeclination]] | ||
}} | }} |
Latest revision as of 10:37, 25 January 2024
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.
- Groups:
- Interaction
Syntax
- Syntax:
- setCompassOscillation [angle, frequencyMin, frequencyMax]
- Parameters:
- 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
- Return Value:
- Nothing
Examples
- Example 1:
- Set compass to oscillate every second within -90/+90 degrees:
- Example 2:
- Change heading every 60 to 90 seconds:
- Example 3:
- Make compass go crazy:
- Example 4:
- Reset to default behaviour:
setCompassOscillation [-1, 0, 0];
Additional Information
- See also:
- visibleCompass shownCompass shownCuratorCompass showCompass showCuratorCompass setCompassDeclination
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