Arma 3 Scripting

Command in Markers

setMarkerDrawPriority

Also available as Markdown and JSON, or read the original wiki page.

Description

Sets marker draw priority. Higher priority markers are drawn on top. Default priority is 0.

Important

Be aware that this command has local effect despite the command name missing the word local!

Syntax

markerName setMarkerDrawPriority priority

Parameters:

Returns: Nothing

Examples

Example 1

"MarkerOne" setMarkerDrawPriority 0.5;

Example 2

"MarkerTwo" setMarkerDrawPriority -2.1;

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.

See also

markerDrawPriority · setMarkerType · setMarkerTypeLocal · markerType · setMarkerAlphaLocal · setMarkerBrush · setMarkerColor · setMarkerDir · setMarkerPos · setMarkerShape · setMarkerSize · setMarkerText · createMarker · CfgMarkers