{"name":"BIS_fnc_rotateMarker","title":"BIS fnc rotateMarker","type":"function","url":"https://community.bistudio.com/wiki/BIS_fnc_rotateMarker","revid":348885,"updated":"2023-11-08T14:39:49Z","groups":["Map and Markers"],"status":"ok","games":{"arma3":"1.78"},"since":"arma3 1.78","arma3_since":"1.78","locality":{"argument":"global","effect":"global"},"exec":"spawn","description":"Rotating a marker to new azimuth, using shortest turn, clockwise or anticlockwise movement.","syntaxes":[{"syntax":"[marker, newAzimuth, absoluteOrRelativ, shortestTurn, duraton] spawn BIS_fnc_rotateMarker","params":[{"name":"marker","type":"String","description":"marker to rotate","type_expr":"String"},{"name":"newAzimuth","type":"Number","description":"new azimuth","type_expr":"Number"},{"name":"absoluteOrRelativ","type":"Boolean","optional":true,"default":"true","description":"defines if the azimuth is absolute true or relative false","type_expr":"Boolean","text":"absoluteOrRelativ: Boolean - (Optional, default true) defines if the azimuth is absolute true or relative false"},{"name":"shortestTurn","type":"Number","optional":true,"default":"0","description":"0 - shortest turn (default, if used with relative dir, counter clockwise is used)\n1 - force clockwise\n2 - force counter clockwise","type_expr":"Number","text":"shortestTurn: Number - (Optional, default 0) 0 - shortest turn (default, if used with relative dir, counter clockwise is used)\n1 - force clockwise\n2 - force counter clockwise"},{"name":"duraton","type":"Number","optional":true,"default":"2","description":"duration for the complete rotation in seconds","type_expr":"Number","text":"duraton: Number - (Optional, default 2) duration for the complete rotation in seconds"}],"returns":{"type":"Nothing","type_expr":"Nothing"}}],"examples":[{"code":["[\"BIS_marker\",90] spawn BIS_fnc_rotateMarker;"]},{"code":["[\"BIS_marker\",90,false,2,5] spawn BIS_fnc_rotateMarker;"]}],"see_also":["BIS_fnc_blinkMarker","BIS_fnc_resizeMarker","BIS_fnc_moveMarker"]}