Skip to content

CreateMarker

A compass marker at a point, shown to the players you choose.

CreateMarker(x, y, z [, kind, color, text])
Parameter Type
x number metres, the level’s world space
y number metres
z number metres
kind number MARKER_QUEST (the default, the quest symbol) or MARKER_POINT (the point-of-interest symbol) (optional)
color number 0xRRGGBBAA; 0 keeps the symbol’s own color (the default) (optional)
text string a label of up to 64 characters, kept for the clients that show one (optional)

number - the marker id, or nil when the 1024 are used up

flag = CreateMarker(1240, 2130, 41, MARKER_QUEST)
ShowMarkerForAll(flag)

DestroyMarker · ShowMarker · SetMarkerPos · CreateHudText · the Compass markers group of the index