Page tree
Skip to end of metadata
Go to start of metadata


Introduced in

Version:1.00

Description

Description:Creates a new marker at the given position.

Syntax

Syntax:createMarker [name, position]
Parameters:
  • name: String - Marker name (must be unique).
  • position: Position2D - World position, defining the center of the marker.
Return Value:String - Name of the created marker, which can be used in subsequent marker commands.

Examples

Examples:
_marker = createMarker ["Marker1", getPos player]

Additional Information

See also: createMarkerLocal, setMarkerType, setMarkerSize, setMarkerShape
Multiplayer:The marker is created on all connected machines (the effect is global). To create local markers, use createMarkerLocal.
Problems: 

Notes





To create a marker you need to define
at least
the
setMarkerType
(for icons) or
setMarkerShape
and
setMarkerSize
for areas.

If not defined, then
markerShape
defaults to "ICON", and
getMarkerSize
defaults to [1,1]:


_iconMarker = createMarker["iconMarker",getpos player];
_iconMarker setMarkerType "DOT";
_areaMarker = createMarker["areaMarker",getpos player];
_areaMarker setMarkerShape "RECTANGLE";
_areaMarker setMarkerSize [100,100];