markerType: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
No edit summary
No edit summary
Line 35: Line 35:
<dt class="note">'''[[User:Waffle SS.|Waffle SS.]]'''
<dt class="note">'''[[User:Waffle SS.|Waffle SS.]]'''
<dd class="note"> Using markerType is a good method to determine if a string is a valid marker name.
<dd class="note"> Using markerType is a good method to determine if a string is a valid marker name.
<code>if (markerType != "") then {hint "valid marker"}</code>
<code>if (markerType "mark1" != "") then {hint "valid marker"}</code>
<BR><BR>
<BR><BR>



Revision as of 00:43, 18 March 2014


Hover & click on the images for description

Description

Description:
Get type of marker. Note: This function is identical to getMarkerType. See cfgMarkers for a list of standard markers.
Groups:
Uncategorised

Syntax

Syntax:
String = markerType markerName
Parameters:
markerName: String
Return Value:
String. See cfgMarkers.

Examples

Example 1:
? markerType "MarkerOne" == "Dot" : "MarkerOne" setMarkerType "Arrow"

Additional Information

See also:
cfgMarkersgetMarkerTypesetMarkerTypesetMarkerTypeLocal

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

Posted on March 17, 2014
Waffle SS.
Using markerType is a good method to determine if a string is a valid marker name. if (markerType "mark1" != "") then {hint "valid marker"}

Bottom Section