markerShape: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "\[\[Category:[ _]?Scripting[ _]Commands[ _]Take[ _]On[ _]Helicopters(\|.*)?\]\]" to "{{GameCategory|tkoh|Scripting Commands}}")
m (Text replacement - "_{10,} " to "")
Line 1: Line 1:
{{Command|Comments=
{{Command|Comments=
____________________________________________________________________________________________


| arma2 |Game name=
| arma2 |Game name=
Line 9: Line 8:


|arg= global|Multiplayer Arguments=
|arg= global|Multiplayer Arguments=
____________________________________________________________________________________________


| Gets the marker shape. See [[setMarkerShape]] for a list of strings that can be returned. Possible return values:
| Gets the marker shape. See [[setMarkerShape]] for a list of strings that can be returned. Possible return values:
Line 17: Line 15:
* <tt>"POLYLINE"</tt>
* <tt>"POLYLINE"</tt>
* <tt>"ERROR"</tt> |DESCRIPTION=
* <tt>"ERROR"</tt> |DESCRIPTION=
____________________________________________________________________________________________


| '''markerShape''' name |SYNTAX=
| '''markerShape''' name |SYNTAX=
Line 32: Line 29:
|x1= <code>[[if]] ('''markerShape''' "Marker1" == "RECTANGLE") [[then]] {[[hint]] "Marker1 is a rectangle!"}</code>|EXAMPLE1=  
|x1= <code>[[if]] ('''markerShape''' "Marker1" == "RECTANGLE") [[then]] {[[hint]] "Marker1 is a rectangle!"}</code>|EXAMPLE1=  


____________________________________________________________________________________________


| [[setMarkerShape]], [[setMarkerShapeLocal]] |SEEALSO=  
| [[setMarkerShape]], [[setMarkerShapeLocal]] |SEEALSO=  


|  |MPBEHAVIOUR=  
|  |MPBEHAVIOUR=  
____________________________________________________________________________________________
}}
}}



Revision as of 01:57, 17 January 2021

Hover & click on the images for description

Description

Description:
Gets the marker shape. See setMarkerShape for a list of strings that can be returned. Possible return values:
  • "ICON"
  • "RECTANGLE"
  • "ELLIPSE"
  • "POLYLINE"
  • "ERROR"
Groups:
Markers

Syntax

Syntax:
markerShape name
Parameters:
name: String -
Return Value:
String

Examples

Example 1:
if (markerShape "Marker1" == "RECTANGLE") then {hint "Marker1 is a rectangle!"}

Additional Information

See also:
setMarkerShapesetMarkerShapeLocal

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

Notes

Bottom Section

Posted on May 30, 2016 - 19:33 (UTC)
Killzone Kid
Free hand drawn markers return "POLYLINE"