setMarkerType: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
mNo edit summary
m (Text replacement - "{{Feature|Informative|" to "{{Feature|informative|")
 
(43 intermediate revisions by 5 users not shown)
Line 1: Line 1:
{{Command|= Comments
{{RV|type=command
____________________________________________________________________________________________


| ofp |= Game name
|game1= ofp
|version1= 1.00


|1.00|= Game version
|game2= ofpe
|version2= 1.00


|eff= global |= Effects in MP
|game3= arma1
____________________________________________________________________________________________
|version3= 1.00


| Sets marker type. Marker type is a class name in [[cfgMarkers]].
|game4= arma2
|version4= 1.00


|= Description
|game5= arma2oa
____________________________________________________________________________________________
|version5= 1.50


| markerName '''setMarkerType''' type |= Syntax
|game6= tkoh
|version6= 1.00


|p1= markerName: [[String]] |= Parameter 1
|game7= arma3
|version7= 0.50


|p2= type: [[String]] - See [[cfgMarkers]] |= Parameter 2
|gr1= Markers


| [[Nothing]] |= Return value
|eff= global
____________________________________________________________________________________________
 
|x1= <code>"MarkerOne" [[setMarkerType]] "Warning";</code> |= Example 1
____________________________________________________________________________________________


| [[cfgMarkers]], [[setMarkerTypeLocal]], [[markerType]], [[setMarkerAlphaLocal]], [[setMarkerBrush]], [[setMarkerColor]], [[setMarkerDir]], [[setMarkerPos]], [[setMarkerShape]], [[setMarkerSize]], [[setMarkerText]], [[createMarker]] |= See also
|descr= Sets marker type. Marker type is a class name from [[CfgMarkers]].
{{Feature|informative|'''Multiplayer optimisation:''' Global marker commands always broadcast the ''entire'' marker state over the network. As such, the number of network messages exchanged when creating or editing a marker can be reduced by performing all but the last operation using local marker commands, then using a global marker command for the last change (and subsequent global broadcast of all changes applied to the marker).}}


}}
|s1= markerName [[setMarkerType]] type
 
|p1= markerName: [[String]]
 
|p2= type: [[String]] - see [[CfgMarkers]]


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


<!-- Note Section END -->
|x1= <sqf>"MarkerOne" setMarkerType "Warning";</sqf>
</dl>


<h3 style="display:none">Bottom Section</h3>
|seealso= [[CfgMarkers]] [[setMarkerDrawPriority]] [[setMarkerTypeLocal]] [[markerType]] [[setMarkerAlphaLocal]] [[setMarkerBrush]] [[setMarkerColor]] [[setMarkerDir]] [[setMarkerPos]] [[setMarkerShape]] [[setMarkerSize]] [[setMarkerText]] [[createMarker]]
[[Category:Scripting Commands|SETMARKERTYPE]]
}}
[[Category:Scripting Commands OFP 1.99|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands OFP 1.96|SETMARKERTYPE]]
[[Category:Scripting Commands OFP 1.46|SETMARKERTYPE]]
[[Category:Scripting Commands ArmA|SETMARKERTYPE]]
[[Category:Command Group: Markers|SETMARKERTYPE]]
[[Category:Scripting Commands ArmA2|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands Arma 3|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting_Commands_Take_On_Helicopters|{{uc:{{PAGENAME}}}}]]

Latest revision as of 01:26, 2 February 2024

Hover & click on the images for description

Description

Description:
Sets marker type. Marker type is a class name from CfgMarkers.
Multiplayer optimisation: Global marker commands always broadcast the entire marker state over the network. As such, the number of network messages exchanged when creating or editing a marker can be reduced by performing all but the last operation using local marker commands, then using a global marker command for the last change (and subsequent global broadcast of all changes applied to the marker).
Groups:
Markers

Syntax

Syntax:
markerName setMarkerType type
Parameters:
markerName: String
type: String - see CfgMarkers
Return Value:
Nothing

Examples

Example 1:
"MarkerOne" setMarkerType "Warning";

Additional Information

See also:
CfgMarkers setMarkerDrawPriority setMarkerTypeLocal markerType setMarkerAlphaLocal setMarkerBrush setMarkerColor setMarkerDir setMarkerPos setMarkerShape setMarkerSize setMarkerText createMarker

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