BIS fnc rotateMarker: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - " " to " ")
m (Text replacement - "<code> *(\^+\]) +\[\[spawn\]\] +\[\[(BIS_fnc_[a-zA-Z0-9_]+)\]\];? *<\/code>" to "<sqf>$1 spawn $2;</sqf>")
(6 intermediate revisions by 2 users 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] [[spawn]] [[BIS_fnc_rotateMarker]]
|s1= [marker, newAzimuth, absoluteOrRelativ, shortestTurn, duraton] spawn [[BIS_fnc_rotateMarker]]


|p1= marker: [[String]] - Marker to rotate
|p1= marker: [[String]] - Marker to rotate
Line 27: Line 26:
|r1= [[Nothing]]
|r1= [[Nothing]]


|x1= <code>["BIS_marker",90] [[spawn]] [[BIS_fnc_rotateMarker]];</code>
|x1= <sqf>["BIS_marker",90] spawn BIS_fnc_rotateMarker;</sqf>


|x2= <code>["BIS_marker",90,[[false]],2,5] [[spawn]] [[BIS_fnc_rotateMarker]];</code>
|x2= <code>["BIS_marker",90,[[false]],2,5] [[spawn]] [[BIS_fnc_rotateMarker]];</code>
Line 35: Line 34:
|seealso= [[BIS_fnc_blinkMarker]] [[BIS_fnc_resizeMarker]] [[BIS_fnc_moveMarker]]
|seealso= [[BIS_fnc_blinkMarker]] [[BIS_fnc_resizeMarker]] [[BIS_fnc_moveMarker]]
}}
}}
[[Category:Functions|{{uc:rotateMarker}}]]
[[Category:{{Name|arma3}}: Functions|{{uc:rotateMarker}}]]

Revision as of 20:04, 5 May 2022

Hover & click on the images for description

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:
["BIS_marker",90] spawn BIS_fnc_rotateMarker;
Example 2:
["BIS_marker",90,false,2,5] spawn BIS_fnc_rotateMarker;

Additional Information

See also:
BIS_fnc_blinkMarker BIS_fnc_resizeMarker BIS_fnc_moveMarker

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