getMarkerType: 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=
____________________________________________________________________________________________


| ofp |Game name=
| ofp |Game name=
Line 8: Line 7:


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


| Returns the type of a given marker. See [[cfgMarkers]] for a list of standard markers. |DESCRIPTION=
| Returns the type of a given marker. See [[cfgMarkers]] for a list of standard markers. |DESCRIPTION=
____________________________________________________________________________________________


|[[String]] <nowiki>=</nowiki>  '''getMarkerType''' markerName |SYNTAX=
|[[String]] <nowiki>=</nowiki>  '''getMarkerType''' markerName |SYNTAX=
Line 20: Line 17:


If the marker does not exist, the returned type is an empty string, ie ""|RETURNVALUE=
If the marker does not exist, the returned type is an empty string, ie ""|RETURNVALUE=
____________________________________________________________________________________________
   
   
|x1= <pre>"MarkerOne" setMarkerType "Destroy"
|x1= <pre>"MarkerOne" setMarkerType "Destroy"
Line 27: Line 23:


returns "Destroy" |EXAMPLE1=
returns "Destroy" |EXAMPLE1=
____________________________________________________________________________________________


| [[cfgMarkers]], [[markerType]], [[setMarkerType]], [[setMarkerTypeLocal]] |SEEALSO=
| [[cfgMarkers]], [[markerType]], [[setMarkerType]], [[setMarkerTypeLocal]] |SEEALSO=

Revision as of 02:18, 17 January 2021

Hover & click on the images for description

Description

Description:
Returns the type of a given marker. See cfgMarkers for a list of standard markers.
Groups:
Markers

Syntax

Syntax:
String = getMarkerType markerName
Parameters:
markerName: String
Return Value:
String. See cfgMarkers. If the marker does not exist, the returned type is an empty string, ie ""

Examples

Example 1:
"MarkerOne" setMarkerType "Destroy"

_type = getMarkerType "MarkerOne"
returns "Destroy"

Additional Information

See also:
cfgMarkersmarkerTypesetMarkerTypesetMarkerTypeLocal

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