setMarkerType: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "|gr1 = Markers |=GROUP1" to "|gr1 = Markers |GROUP1=")
m (Text replacement - "{{Feature|Informative|" to "{{Feature|informative|")
 
(33 intermediate revisions by 4 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


|gr1 = Markers |GROUP1=
|game3= arma1
|version3= 1.00


|game4= arma2
|version4= 1.00


|game5= arma2oa
|version5= 1.50


|eff= global |Multiplayer Effects=
|game6= tkoh
____________________________________________________________________________________________
|version6= 1.00


| Sets marker type. Marker type is a class name in [[cfgMarkers]].
|game7= arma3
|version7= 0.50


|DESCRIPTION=
|gr1= Markers
____________________________________________________________________________________________


| markerName '''setMarkerType''' type |SYNTAX=
|eff= global


|p1= markerName: [[String]] |PARAMETER1=
|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).}}


|p2= type: [[String]] - See [[cfgMarkers]] |PARAMETER2=
|s1= markerName [[setMarkerType]] type


| [[Nothing]] |RETURNVALUE=
|p1= markerName: [[String]]
____________________________________________________________________________________________
 
|x1= <code>"MarkerOne" [[setMarkerType]] "Warning";</code> |EXAMPLE1=
____________________________________________________________________________________________


| [[cfgMarkers]], [[setMarkerTypeLocal]], [[markerType]], [[setMarkerAlphaLocal]], [[setMarkerBrush]], [[setMarkerColor]], [[setMarkerDir]], [[setMarkerPos]], [[setMarkerShape]], [[setMarkerSize]], [[setMarkerText]], [[createMarker]] |SEEALSO=
|p2= type: [[String]] - see [[CfgMarkers]]


}}
|r1= [[Nothing]]


<h3 style="display:none">Notes</h3>
|x1= <sqf>"MarkerOne" setMarkerType "Warning";</sqf>
<dl class="command_description">
<!-- Note Section BEGIN -->


<!-- Note Section END -->
|seealso= [[CfgMarkers]] [[setMarkerDrawPriority]] [[setMarkerTypeLocal]] [[markerType]] [[setMarkerAlphaLocal]] [[setMarkerBrush]] [[setMarkerColor]] [[setMarkerDir]] [[setMarkerPos]] [[setMarkerShape]] [[setMarkerSize]] [[setMarkerText]] [[createMarker]]
</dl>
}}
 
<h3 style="display:none">Bottom Section</h3>
[[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 Armed Assault|SETMARKERTYPE]]
[[Category:Command Group: Markers|SETMARKERTYPE]]
[[Category:Scripting Commands Arma 2|{{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