{"name":"BIS_fnc_rotateMarker","operator":null,"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","replaced_by":[],"games":[{"game":"arma3","name":"Arma 3","version":"1.78"}],"since":{"game":"arma3","name":"Arma 3","version":"1.78"},"arma3_since":"1.78","branch":null,"locality":{"argument":"global","effect":"global","server_exec":false},"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","since":null,"effect":null,"exec":null,"params":[{"name":"marker","type":"String","optional":false,"default":null,"description":"marker to rotate","types":["String"],"since":null,"text":"marker: String - marker to rotate"},{"name":"newAzimuth","type":"Number","optional":false,"default":null,"description":"new azimuth","types":["Number"],"since":null,"text":"newAzimuth: Number - new azimuth"},{"name":"absoluteOrRelativ","type":"Boolean","optional":true,"default":"true","description":"defines if the azimuth is absolute true or relative false","types":["Boolean"],"since":null,"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","types":["Number"],"since":null,"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","types":["Number"],"since":null,"text":"duraton: Number - (Optional, default 2) duration for the complete rotation in seconds"}],"returns":{"type":"Nothing","types":["Nothing"],"description":null,"text":"Nothing"}}],"examples":[{"text":"```sqf\n[\"BIS_marker\",90] spawn BIS_fnc_rotateMarker;\n```","code":["[\"BIS_marker\",90] spawn BIS_fnc_rotateMarker;"]},{"text":"```sqf\n[\"BIS_marker\",90,false,2,5] spawn BIS_fnc_rotateMarker;\n```","code":["[\"BIS_marker\",90,false,2,5] spawn BIS_fnc_rotateMarker;"]}],"multiplayer":null,"problems":null,"aliases":[],"see_also":["BIS_fnc_blinkMarker","BIS_fnc_resizeMarker","BIS_fnc_moveMarker"],"notes":[],"categories":["Arma 3: Functions","Arma 3: New Functions","Function Group: Map and Markers","Functions","Functions: Global Effect","Introduced with Arma 3 version 1.78"],"docblock":null,"filled_from_docblock":[]}