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|")
 
(63 intermediate revisions by 18 users not shown)
Line 1: Line 1:
[[Category:Scripting Commands|SETMARKERTYPE]]
{{RV|type=command
[[Category:Scripting Commands OFP 1.96|SETMARKERTYPE]]
[[Category:Scripting Commands OFP 1.46|SETMARKERTYPE]]
[[Category:Scripting Commands ArmA|SETMARKERTYPE]]


|game1= ofp
|version1= 1.00


<h2 style="color:#000066">'''''marker'' setMarkerType ''type'''''</h2>
|game2= ofpe
|version2= 1.00


|game3= arma1
|version3= 1.00


'''Operand types:'''
|game4= arma2
|version4= 1.00


'''marker:''' [[String]]
|game5= arma2oa
|version5= 1.50


'''type:''' [[String]]
|game6= tkoh
|version6= 1.00


'''Type of returned value:'''
|game7= arma3
|version7= 0.50


[[Nothing]]
|gr1= Markers


'''Description:'''
|eff= global


Set '''marker''' type.
|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).}}


'''Type''' may be any of:
|s1= markerName [[setMarkerType]] type


* '''"Flag1"'''
|p1= markerName: [[String]]
* '''"Dot"'''
* '''"Destroy"'''
* '''"Start"'''
* '''"End"'''
* '''"Warning"'''
* '''"Join"'''
* '''"Pickup"'''
* '''"Unknown"'''
* '''"Marker"'''
* '''"Arrow"'''
* '''"Empty"'''


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


'''Example:'''
|r1= [[Nothing]]


"MarkerOne" '''setMarkerType''' '''"Warning"'''
|x1= <sqf>"MarkerOne" setMarkerType "Warning";</sqf>
 
|seealso= [[CfgMarkers]] [[setMarkerDrawPriority]] [[setMarkerTypeLocal]] [[markerType]] [[setMarkerAlphaLocal]] [[setMarkerBrush]] [[setMarkerColor]] [[setMarkerDir]] [[setMarkerPos]] [[setMarkerShape]] [[setMarkerSize]] [[setMarkerText]] [[createMarker]]
}}

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