Arma 3 Scripting

createMarkerLocal

  • Local effect
  • Arma 3 v0.50
  • First in Armed Assault v1.04

Command · Markdown · JSON · original wiki page

Description

Creates a local marker at the given position - the marker only exists on the machine that created it. The marker name has to be unique, if a marker with the given name exists, the command will be ignored. Use deleteMarkerLocal to delete a local marker.

If the position is given in 3D format, z coordinate is stored with the marker and will be used when marker is passed to commands like createVehicle, createUnit, createAgent, createMine, setVehiclePosition for example. However getMarkerPos and markerPos will always return 0 for z.

Important

Local markers have their own set of local commands "xxMarkerxxLocal" to work with. If you use global marker commands on a local marker, the local marker will become global.

Syntax

createMarkerLocal [name, position, channel, creator]

Parameters:

Returns: String - the marker's name, or an empty string if the marker name is not unique

Examples

Example 1

_marker = createMarkerLocal ["Marker1", position player];

Multiplayer

createMarkerLocal is local, so it should be used along with the other local commands. For global equivalent use createMarker.

Problems

setMarkerDrawPriority sorts allMapMarkers from least to most priority. Before Arma 3 v2.18 createMarker/createMarkerLocal did not care about drawing priority and added the created marker to the end of the array, making it top priority. Running setMarkerDrawPriority again sorted this issue.

See also

allMapMarkers · deleteMarkerLocal · createMarker · setMarkerBrushLocal · setMarkerColorLocal · setMarkerDirLocal · setMarkerPosLocal · setMarkerShapeLocal · setMarkerSizeLocal · setMarkerTextLocal · setMarkerTypeLocal · setMarkerAlphaLocal · BIS_fnc_markerToString · BIS_fnc_stringToMarkerLocal

Community notes