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|")
 
(56 intermediate revisions by 15 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


| Set marker type. Type may be any of:
|game3= arma1
* '''"Flag"'''
|version3= 1.00
* '''"Flag1"'''
* '''"Dot"'''
* '''"Destroy"'''
* '''"Start"'''
* '''"End"'''
* '''"Warning"'''
* '''"Join"'''
* '''"Pickup"'''
* '''"Unknown"'''
* '''"Marker"'''
* '''"Arrow"'''
* '''"Empty"'''
* '''"Empty"'''('''"Select"''')


Arma V1.14 also:
|game4= arma2
* '''"AirTeam"'''
|version4= 1.00
* '''"Attack"'''
* '''"Camp"'''
* '''"CommandTeam"'''
* '''"Defend"'''
* '''"Depot"'''
* '''"DestroyedVehicle"'''
* '''"FireMission"'''
* '''"Headquaters"'''
* '''"HeavyTeam"'''
* '''"InfantryTeam"'''
* '''"LightTeam"'''
* '''"Move"'''
* '''"RepairVehicle"'''
* '''"SalvageVehicle"'''
* '''"SupplyVehicle"'''
* '''"Town"'''
* '''"Vehicle"'''


|game5= arma2oa
|version5= 1.50


|= Description
|game6= tkoh
____________________________________________________________________________________________
|version6= 1.00


| markerName '''setMarkerType''' type |= Syntax
|game7= arma3
|version7= 0.50


|p1= markerName: [[String]] |= Parameter 1
|gr1= Markers


|p2= type: [[String]]. As above |= Parameter 2
|eff= global


| [[Nothing]] |= Return value
|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).}}
 
|x1= <pre>"MarkerOne" setMarkerType "Warning"</pre> |= Example 1
____________________________________________________________________________________________


| |= See also
|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.96|SETMARKERTYPE]]
[[Category:Scripting Commands OFP 1.46|SETMARKERTYPE]]
[[Category:Scripting Commands ArmA|SETMARKERTYPE]]
[[Category:Command Group: Markers|SETMARKERTYPE]]

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