setMarkerText: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
mNo edit summary
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...)
 
(76 intermediate revisions by 15 users not shown)
Line 1: Line 1:
[[Category:Scripting Commands|SETMARKERTEXT]]
{{RV|type=command
[[Category:Scripting Commands OFP Elite |SETMARKERTEXT]]
[[Category:Scripting Commands ArmA|SETMARKERTEXT]]


<new command not populated>
|game1= ofpe
|version1= 1.00


|game2= arma1
|version2= 1.00


<h2 style="color:#000066">'''''name'' setMarkerText ''text'''''</h2>
|game3= arma2
|version3= 1.00


|game4= arma2oa
|version4= 1.50


'''Operand types:'''
|game5= tkoh
|version5= 1.00


'''name:''' [[String]]
|game6= arma3
|version6= 0.50


'''text:''' [[String]]
|gr1= Markers


'''Type of returned value:'''
|eff= global


[[Nothing]]
|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).
}}


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


Version 1.86 required.
|p1= markerName: [[String]]


'''Description:'''
|p2= text: [[String]]


Sets the text label of an existing marker.
|r1= [[Nothing]]


'''Example:'''
|x1= <sqf>"Marker1" setMarkerText "You are here.";</sqf>


"Marker1" '''setMarkerText''' You are here.
|seealso= [[setMarkerBrush]] [[setMarkerColor]] [[setMarkerDir]] [[setMarkerPos]] [[setMarkerShape]] [[setMarkerSize]] [[setMarkerType]] [[setMarkerAlpha]]
}}

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