BIS fnc rotateMarker: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "<code> *([^<|{]*) *<\/code>" to "<sqf>$1</sqf>") |
Lou Montana (talk | contribs) m (Text replacement - "(\|p[0-9]+ *= *[^(]+\(Optional(, default[^)]*)\) )D([a-z])" to "$1d$3") |
||
Line 18: | Line 18: | ||
|p2= newAzimuth: [[Number]] - New azimuth | |p2= newAzimuth: [[Number]] - New azimuth | ||
|p3= absoluteOrRelativ: [[Boolean]] - (Optional, default [[true]]) | |p3= absoluteOrRelativ: [[Boolean]] - (Optional, default [[true]]) defines if the azimuth is absolute [[true]] or relative [[false]] | ||
|p4= shortestTurn: [[Number]] - (Optional, default 0) 0 - shortest turn (default, if used with relative dir, counter clockwise is used)<br>1 - force clockwise<br>2 - force counter clockwise | |p4= shortestTurn: [[Number]] - (Optional, default 0) 0 - shortest turn (default, if used with relative dir, counter clockwise is used)<br>1 - force clockwise<br>2 - force counter clockwise | ||
|p5= duraton: [[Number]] - (Optional, default 2) | |p5= duraton: [[Number]] - (Optional, default 2) duration for the complete rotation in seconds | ||
|r1= [[Nothing]] | |r1= [[Nothing]] |
Revision as of 12:28, 8 November 2023
Description
- Description:
- Rotating a marker to new azimuth, using shortest turn, clockwise or anticlockwise movement.
- Execution:
- spawn
- Groups:
- Map and Markers
Syntax
- Syntax:
- [marker, newAzimuth, absoluteOrRelativ, shortestTurn, duraton] spawn BIS_fnc_rotateMarker
- Parameters:
- marker: String - Marker to rotate
- newAzimuth: Number - New azimuth
- absoluteOrRelativ: Boolean - (Optional, default true) defines if the azimuth is absolute true or relative false
- shortestTurn: Number - (Optional, default 0) 0 - shortest turn (default, if used with relative dir, counter clockwise is used)
1 - force clockwise
2 - force counter clockwise - duraton: Number - (Optional, default 2) duration for the complete rotation in seconds
- Return Value:
- Nothing
Examples
- Example 1:
- Example 2:
Additional Information
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