BIS fnc rotateMarker: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - " +" to " ") |
Lou Montana (talk | contribs) m (Text replacement - "(\|[pr][0-9]+ *= *[^- ]*) *- *N([a-z ])" to "$1 - n$2") |
||
(11 intermediate revisions by the same user not shown) | |||
Line 2: | Line 2: | ||
|game1= arma3 | |game1= arma3 | ||
|version1= 1.78 | |version1= 1.78 | ||
Line 13: | Line 12: | ||
|descr= Rotating a marker to new azimuth, using shortest turn, clockwise or anticlockwise movement. | |descr= Rotating a marker to new azimuth, using shortest turn, clockwise or anticlockwise movement. | ||
|s1= [marker, newAzimuth, absoluteOrRelativ, shortestTurn, duraton] | |s1= [marker, newAzimuth, absoluteOrRelativ, shortestTurn, duraton] spawn [[BIS_fnc_rotateMarker]] | ||
|p1= marker: [[String]] - | |p1= marker: [[String]] - marker to rotate | ||
|p2= newAzimuth: [[Number]] - | |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]] | ||
|x1= < | |x1= <sqf>["BIS_marker",90] spawn BIS_fnc_rotateMarker;</sqf> | ||
|x2= < | |x2= <sqf>["BIS_marker",90,false,2,5] spawn BIS_fnc_rotateMarker;</sqf> | ||
|exec= spawn | |exec= spawn | ||
Line 35: | Line 34: | ||
|seealso= [[BIS_fnc_blinkMarker]] [[BIS_fnc_resizeMarker]] [[BIS_fnc_moveMarker]] | |seealso= [[BIS_fnc_blinkMarker]] [[BIS_fnc_resizeMarker]] [[BIS_fnc_moveMarker]] | ||
}} | }} | ||
Latest revision as of 15:39, 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