getMarkerType: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
No edit summary
No edit summary
Line 1: Line 1:
[[Category:Scripting Commands|GETMARKERTYPE]]
{{Command|= Comments
[[Category:Scripting Commands OFP 1.96|GETMARKERTYPE]]
____________________________________________________________________________________________
[[Category:Scripting Commands OFP 1.46|GETMARKERTYPE]]
[[Category:Scripting Commands ArmA|GETMARKERTYPE]]


| ofp |= Game name


<h2 style="color:#000066"> '''getMarkerType ''marker'''''</h2>
|1.21|= Game version


|arg= local |= Arguments in MP
____________________________________________________________________________________________


'''Operand types:'''
| Returns the type of a given marker. |= Description
____________________________________________________________________________________________


'''marker:''' [[String]]
| '''getMarkerType''' marker |= Syntax


'''Type of returned value:'''
|p1= marker: [[String]] - marker name |= Parameter 1


[[String]]
| [[String]]
The returned type is one of "Flag", "Flag1", "Dot", "Destroy", "Start", "End", "Warning", "Join", "Pickup", "Unknown", "Marker", "Arrow" and "Empty" |= Return value
____________________________________________________________________________________________
 
|x1= <pre>"MarkerOne" setMarkerType "Destroy"


'''Compatibility:'''
_type = getMarkerType "MarkerOne"</pre>


Added in version '''1.21'''
returns "Destroy" |= Example 1
____________________________________________________________________________________________


'''Description:'''
| [[setMarkerType]] |= See also


Get type of marker.
}}


See [[setMarkerType]]
<h3 style="display:none">Notes</h3>
<dl class="command_description">
<!-- Note Section BEGIN -->


<!-- Note Section END -->
</dl>


'''Examples:'''
<h3 style="display:none">Bottom Section</h3>
 
[[Category:Scripting Commands|GETMARKERTYPE]]
_mType = '''getMarkerType''' "MarkerOne"
[[Category:Scripting Commands OFP 1.96|GETMARKERTYPE]]
[[Category:Scripting Commands OFP 1.46|GETMARKERTYPE]]
[[Category:Scripting Commands ArmA|GETMARKERTYPE]]

Revision as of 01:22, 2 August 2006

Hover & click on the images for description

Description

Description:
Returns the type of a given marker.
Groups:
Uncategorised

Syntax

Syntax:
getMarkerType marker
Parameters:
marker: String - marker name
Return Value:
String - The returned type is one of "Flag", "Flag1", "Dot", "Destroy", "Start", "End", "Warning", "Join", "Pickup", "Unknown", "Marker", "Arrow" and "Empty"

Examples

Example 1:
"MarkerOne" setMarkerType "Destroy"

_type = getMarkerType "MarkerOne"
returns "Destroy"

Additional Information

See also:
setMarkerType

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