markerShape

From Bohemia Interactive Community
Hover & click on the images for description

Description

Description:
Returns the shape of given marker. markerShape#Example_2
This command can be used as a fast way to check if a marker exists. See Example 2.
Groups:
Markers

Syntax

Syntax:
markerShape name
Parameters:
name: String - name of the marker
Return Value:
String - shape of given marker. Can be return:
  • "" - if the marker does not exist
  • "ICON"
  • "RECTANGLE"
  • "ELLIPSE"
  • Arma 3 logo black.png 1.60 "POLYLINE" - hand drawn markers
  • Arma 3 logo black.png 2.20 "TRIANGLE"
  • Arma 3 logo black.png 2.20 "PENTAGON"
  • Arma 3 logo black.png 2.20 "HEXAGON"
  • Arma 3 logo black.png 2.20 "HEPTAGON"
  • Arma 3 logo black.png 2.20 "OCTAGON"
  • Arma 3 logo black.png 2.20 "NONAGON"
  • Arma 3 logo black.png 2.20 "DECAGON"

Examples

Example 1:
if (markerShape "Marker1" == "RECTANGLE") then { hint "Marker1 is a rectangle!" };
Example 2:
if (markerShape "Marker1" == "") then { hint "Marker1 does not exist!" };

Additional Information

See also:
setMarkerShape setMarkerShapeLocal

Notes

Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord.
Only post proven facts here! Add Note