{"name":"setMarkerDrawPriority","operator":null,"title":"setMarkerDrawPriority","type":"command","url":"https://community.bistudio.com/wiki/setMarkerDrawPriority","revid":373673,"updated":"2025-06-09T15:29:58Z","groups":["Markers"],"status":"ok","replaced_by":[],"games":[{"game":"arma3","name":"Arma 3","version":"2.14"}],"since":{"game":"arma3","name":"Arma 3","version":"2.14"},"arma3_since":"2.14","branch":null,"locality":{"argument":null,"effect":"local","server_exec":false},"exec":null,"description":"Sets marker draw priority. Higher priority markers are drawn on top. Default priority is 0.\n\n> [!IMPORTANT]\n> Be aware that this command has **local** effect despite the command name missing the word **local**!","syntaxes":[{"syntax":"markerName setMarkerDrawPriority priority","since":null,"effect":null,"exec":null,"params":[{"name":"markerName","type":"String","optional":false,"default":null,"description":null,"types":["String"],"since":null,"text":"markerName: String"},{"name":"priority","type":"Number","optional":false,"default":null,"description":"draw priority","types":["Number"],"since":null,"text":"priority: Number - draw priority"}],"returns":{"type":"Nothing","types":["Nothing"],"description":null,"text":"Nothing"},"form":"binary","operator":null,"left":{"text":"markerName","types":["String"]},"right":{"text":"priority","types":["Number"]}}],"examples":[{"text":"```sqf\n\"MarkerOne\" setMarkerDrawPriority 0.5;\n```","code":["\"MarkerOne\" setMarkerDrawPriority 0.5;"]},{"text":"```sqf\n\"MarkerTwo\" setMarkerDrawPriority -2.1;\n```","code":["\"MarkerTwo\" setMarkerDrawPriority -2.1;"]}],"multiplayer":null,"problems":"setMarkerDrawPriority sorts allMapMarkers from least to most priority. Before Arma 3 v2.18 createMarker/createMarkerLocal did **not** care about drawing priority and added the created marker to the end of the array, making it top priority. Running setMarkerDrawPriority again sorted this issue.","aliases":[],"see_also":["markerDrawPriority","setMarkerType","setMarkerTypeLocal","markerType","setMarkerAlphaLocal","setMarkerBrush","setMarkerColor","setMarkerDir","setMarkerPos","setMarkerShape","setMarkerSize","setMarkerText","createMarker","CfgMarkers"],"notes":[],"categories":["Arma 3: New Scripting Commands","Arma 3: Scripting Commands","Command Group: Markers","Introduced with Arma 3 version 2.14","Scripting Commands","Scripting Commands: Local Effect"]}