setMarkerText: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - " *\| *([Cc]omments|COMMENTS|Game|[Gg]ame [Nn]ame( +[0-9])?|Game [Vv]ersion( +[0-9])?|Game Version \(number surrounded by NO SPACES\)|Arguments in MP|MP[Aa]rg|Multiplayer Arguments( \("local" or "global"\))?|Effects|Execution|Effects...)
m (Text replacement - "{{Feature|Informative|" to "{{Feature|informative|")
 
(30 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{Command
{{RV|type=command


| arma1
|game1= ofpe
|version1= 1.00


|1.00
|game2= arma1
|version2= 1.00


|gr1 = Markers
|game3= arma2
|version3= 1.00
 
|game4= arma2oa
|version4= 1.50
 
|game5= tkoh
|version5= 1.00
 
|game6= arma3
|version6= 0.50
 
|gr1= Markers


|eff= global
|eff= global


| Sets the text label of an existing marker.
|descr= Sets the text label of an existing marker.
{{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).}}
 


| markerName '''setMarkerText''' text
|s1= markerName [[setMarkerText]] text


|p1= markerName: [[String]]
|p1= markerName: [[String]]
Line 19: Line 32:
|p2= text: [[String]]
|p2= text: [[String]]


|r1= [[Nothing]]


| [[Nothing]]
|x1= <sqf>"Marker1" setMarkerText "You are here.";</sqf>
 
|x1= <code>"Marker1" [[setMarkerText]] "You are here.";</code>
 
|mp=
 
|[[setMarkerBrush]], [[setMarkerColor]], [[setMarkerDir]], [[setMarkerPos]], [[setMarkerShape]], [[setMarkerSize]], [[setMarkerType]], [[setMarkerAlpha]]


|seealso= [[setMarkerBrush]] [[setMarkerColor]] [[setMarkerDir]] [[setMarkerPos]] [[setMarkerShape]] [[setMarkerSize]] [[setMarkerType]] [[setMarkerAlpha]]
}}
}}
<h3 style="display:none">Notes</h3>
<dl class="command_description">
</dl>
[[Category:Scripting Commands|SETMARKERTEXT]]
{{GameCategory|ofpe|Scripting Commands}}
{{GameCategory|arma1|Scripting Commands}}
{{GameCategory|arma2|Scripting Commands}}
{{GameCategory|arma3|Scripting Commands}}
{{GameCategory|tkoh|Scripting Commands}}

Latest revision as of 01:25, 2 February 2024

Hover & click on the images for description

Description

Description:
Sets the text label of an existing marker.
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 setMarkerText text
Parameters:
markerName: String
text: String
Return Value:
Nothing

Examples

Example 1:
"Marker1" setMarkerText "You are here.";

Additional Information

See also:
setMarkerBrush setMarkerColor setMarkerDir setMarkerPos setMarkerShape setMarkerSize setMarkerType setMarkerAlpha

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