setMarkerDrawPriority: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
(Highlighted locality since this command has different naming scheme)
m (Text replacement - "|pr= setMarkerDrawPriority sorts allMapMarkers from least to most priority. As of {{GVI|arma3|2.16|size= 0.75}} createMarker/createMarkerLocal do '''not''' care about drawing priority and add the created marker to the end of the array, making it top priority. Running setMarkerDrawPriority again sorts this issue." to "|pr= setMarkerDrawPriority sorts allMapMarkers from least to most priority. Before {{GVI|arma3|2.18|size= 0.75}} createMarker/...)
 
(4 intermediate revisions by the same user not shown)
Line 3: Line 3:
|game1= arma3
|game1= arma3
|version1= 2.14
|version1= 2.14
|branch= dev


|gr1= Markers
|gr1= Markers
|eff= local
|eff= local


|descr= Sets marker draw priority. Higher priority markers are drawn on top. Default priority is 0. {{Feature|important|Be aware that this command has '''local''' effect despite the command name missing the world '''local'''!}}
|descr= Sets marker draw priority. Higher priority markers are drawn on top. Default priority is 0.
{{Feature|important|Be aware that this command has '''local''' effect despite the command name missing the world '''local'''!}}


|pr= [[setMarkerDrawPriority]] sorts [[allMapMarkers]] from least to most priority. Before {{GVI|arma3|2.18|size= 0.75}} [[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.


|s1= markerName [[setMarkerDrawPriority]] priority
|s1= markerName [[setMarkerDrawPriority]] priority
Line 20: Line 21:


|x1= <sqf>"MarkerOne" setMarkerDrawPriority 0.5;</sqf>
|x1= <sqf>"MarkerOne" setMarkerDrawPriority 0.5;</sqf>
|x2= <sqf>"MarkerTwo" setMarkerDrawPriority -2.1;</sqf>
|x2= <sqf>"MarkerTwo" setMarkerDrawPriority -2.1;</sqf>
|seealso= [[markerDrawPriority]] [[setMarkerType]] [[setMarkerTypeLocal]] [[markerType]] [[setMarkerAlphaLocal]] [[setMarkerBrush]] [[setMarkerColor]] [[setMarkerDir]] [[setMarkerPos]] [[setMarkerShape]] [[setMarkerSize]] [[setMarkerText]] [[createMarker]] [[CfgMarkers]]  
|seealso= [[markerDrawPriority]] [[setMarkerType]] [[setMarkerTypeLocal]] [[markerType]] [[setMarkerAlphaLocal]] [[setMarkerBrush]] [[setMarkerColor]] [[setMarkerDir]] [[setMarkerPos]] [[setMarkerShape]] [[setMarkerSize]] [[setMarkerText]] [[createMarker]] [[CfgMarkers]]  
}}
}}

Latest revision as of 11:53, 24 April 2024

Hover & click on the images for description

Description

Description:
Sets marker draw priority. Higher priority markers are drawn on top. Default priority is 0.
Be aware that this command has local effect despite the command name missing the world local!
Problems:
setMarkerDrawPriority sorts allMapMarkers from least to most priority. Before Arma 3 logo black.png2.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.
Groups:
Markers

Syntax

Syntax:
markerName setMarkerDrawPriority priority
Parameters:
markerName: String
priority: Number - draw priority
Return Value:
Nothing

Examples

Example 1:
"MarkerOne" setMarkerDrawPriority 0.5;
Example 2:
"MarkerTwo" setMarkerDrawPriority -2.1;

Additional Information

See also:
markerDrawPriority setMarkerType setMarkerTypeLocal markerType setMarkerAlphaLocal setMarkerBrush setMarkerColor setMarkerDir setMarkerPos setMarkerShape setMarkerSize setMarkerText createMarker CfgMarkers

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