BIS fnc rotateMarker: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (infobox to template)
m (page filling)
Line 1: Line 1:
{{Function|= Comments
{{Function


| arma3 |Game name=
|game1= arma3


|1.78|Game version=
|version1= 1.78


<!---|arg= local |Multiplayer Arguments=--->
<!--|exec= server|=-->


<!---|eff= local |Multiplayer Effects=--->
|arg= global


| <pre>/*
|eff= global
Author:
BIS


Description:
|descr= Rotating a marker to new azimuth, using shortest turn, clockwise or anticlockwise movement.
Rotating a marker to new azimuth, using shortest turn, clockwise or anticlockwise movement


Parameters:
Select 0 - STRING: Marker
Select 1 - NUMBER: New azimuth
Select 2 (OPTIONAL) - BOOLEAN: Absolute (true) or relative (false) azimuth (default true)
Select 3 (OPTIONAL) - NUMBER: 0 - shortest turn (default, if used with relative dir, counter clockwise is used), 1 - force clockwise, 2 - force counter clockwise
Select 4 (OPTIONAL) - NUMBER: Duration for complete rotation (default 2)


Returns:
|s1= [marker, newAzimuth, absoluteOrRelativ, shortestTurn, duraton] [[spawn]] [[BIS_fnc_rotateMarker]]
Nothing


Examples:
|p1= marker: [[String]] - Marker to rotate
_rotate = ["BIS_marker",90] spawn BIS_fnc_rotateMarker;
_rotate = ["BIS_marker",90,false] spawn BIS_fnc_rotateMarker;
_rotate = ["BIS_marker",90,true,1] spawn BIS_fnc_rotateMarker;
_rotate = ["BIS_marker",90,false,2,5] spawn BIS_fnc_rotateMarker;
*/</pre>{{placeholder}}<!-- Remove this after fill-in --> |Description=


|[] call [[BIS_fnc_rotateMarker]]|Syntax=
|p2= newAzimuth: [[Number]] - New azimuth


|p1= parameter: Datatype - (Optional, default defValue) description |Parameter 1=
|p3= absoluteOrRelativ: [[Boolean]] - (Optional, default [[true]]) Defines if the azimuth is absolute [[true]] or relative [[false]]


|Datatype - description|Return value=
|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


|x1= <code></code>|Example 1=
|p5= duraton: [[Number]] - (Optional, default 2) Duraton for the complete rotation in seconds


|exec= call |Execution=
|r1= [[Nothing]]
 
|x1= <code>["BIS_marker",90] [[spawn]] [[BIS_fnc_rotateMarker]];</code>
 
|x2= <code>["BIS_marker",90,[[false]],2,5] [[spawn]] [[BIS_fnc_rotateMarker]];</code>
 
|exec= spawn
 
|seealso= [[BIS_fnc_blinkMarker]] [[BIS_fnc_resizeMarker]] [[BIS_fnc_moveMarker]]


| |See also=
}}
}}



Revision as of 12:20, 6 January 2020

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:
Uncategorised

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) Duraton 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