setMarkerText: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "<h3 style="display:none">Bottom Section</h3> " to "")
m (Text replacement - "{{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).}}" to "{{Feature|informative| '''Multipla...)
 
(32 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{Command|Comments=
{{RV|type=command


| arma1 |Game name=
|game1= ofpe
|version1= 1.00


|1.00|Game version=
|game2= arma1
|version2= 1.00


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


|eff= global |Multiplayer Effects=
|game4= arma2oa
|version4= 1.50


| Sets the text label of an existing marker.
|game5= tkoh
{{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).}}
|version5= 1.00
|DESCRIPTION=


| markerName '''setMarkerText''' text |SYNTAX=
|game6= arma3
|version6= 0.50


|p1= markerName: [[String]] |PARAMETER1=
|gr1= Markers


|p2= text: [[String]] |PARAMETER2=
|eff= global


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


| [[Nothing]] |RETURNVALUE=
|s1= markerName [[setMarkerText]] text
 
|x1= <code>"Marker1" [[setMarkerText]] "You are here.";</code> |EXAMPLE1=


|mp=
|p1= markerName: [[String]]


|[[setMarkerBrush]], [[setMarkerColor]], [[setMarkerDir]], [[setMarkerPos]], [[setMarkerShape]], [[setMarkerSize]], [[setMarkerType]], [[setMarkerAlpha]]
|p2= text: [[String]]
|SEEALSO=
}}


<h3 style="display:none">Notes</h3>
|r1= [[Nothing]]
<dl class="command_description">


</dl>
|x1= <sqf>"Marker1" setMarkerText "You are here.";</sqf>


[[Category:Scripting Commands|SETMARKERTEXT]]
|seealso= [[setMarkerBrush]] [[setMarkerColor]] [[setMarkerDir]] [[setMarkerPos]] [[setMarkerShape]] [[setMarkerSize]] [[setMarkerType]] [[setMarkerAlpha]]
{{GameCategory|ofpe|Scripting Commands}}
}}
{{GameCategory|arma1|Scripting Commands}}
{{GameCategory|arma2|Scripting Commands}}
{{GameCategory|arma3|Scripting Commands}}
{{GameCategory|tkoh|Scripting Commands}}

Latest revision as of 21:28, 28 October 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