setMarkerType: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "|version6= 0.50 " to "|version6= 0.50 ")
m (Text replacement - "{{Feature|Informative|" to "{{Feature|informative|")
 
(11 intermediate revisions by 2 users not shown)
Line 2: Line 2:


|game1= ofp
|game1= ofp
|version1= 1.00
|version1= 1.00


|game2= arma1
|game2= ofpe
 
|version2= 1.00
|version2= 1.00


|game3= arma2
|game3= arma1
 
|version3= 1.00
|version3= 1.00


|game4= arma2oa
|game4= arma2
 
|version4= 1.00
|version4= 1.51
 
|game5= tkoh


|version5= 1.00
|game5= arma2oa
|version5= 1.50


|game6= arma3
|game6= tkoh
|version6= 1.00


|version6= 0.50
|game7= arma3
|version7= 0.50


|gr1 = Markers
|gr1= Markers


|eff= global
|eff= global


|descr= Sets marker type. Marker type is a class name from [[CfgMarkers]].
|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).}}
{{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
|s1= markerName [[setMarkerType]] type
Line 36: Line 33:
|p1= markerName: [[String]]
|p1= markerName: [[String]]


|p2= type: [[String]] - See [[CfgMarkers]]
|p2= type: [[String]] - see [[CfgMarkers]]


|r1= [[Nothing]]
|r1= [[Nothing]]
 
|x1= <code>"MarkerOne" [[setMarkerType]] "Warning";</code>


|seealso= [[CfgMarkers]] [[setMarkerTypeLocal]] [[markerType]] [[setMarkerAlphaLocal]] [[setMarkerBrush]] [[setMarkerColor]] [[setMarkerDir]] [[setMarkerPos]] [[setMarkerShape]] [[setMarkerSize]] [[setMarkerText]] [[createMarker]]
|x1= <sqf>"MarkerOne" setMarkerType "Warning";</sqf>
 
|seealso= [[CfgMarkers]] [[setMarkerDrawPriority]] [[setMarkerTypeLocal]] [[markerType]] [[setMarkerAlphaLocal]] [[setMarkerBrush]] [[setMarkerColor]] [[setMarkerDir]] [[setMarkerPos]] [[setMarkerShape]] [[setMarkerSize]] [[setMarkerText]] [[createMarker]]
}}
}}
[[Category:Scripting Commands OFP 1.99|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands OFP 1.96|SETMARKERTYPE]]
[[Category:Scripting Commands OFP 1.46|SETMARKERTYPE]]
{{GameCategory|arma1|Scripting Commands}}
{{GameCategory|arma2|Scripting Commands}}
{{GameCategory|arma3|Scripting Commands}}
{{GameCategory|tkoh|Scripting Commands}}

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