CreateMarker
A compass marker at a point, shown to the players you choose.
Syntax
Section titled “Syntax”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) |
Returns
Section titled “Returns”number - the marker id, or nil when the 1024 are used up
Example
Section titled “Example”flag = CreateMarker(1240, 2130, 41, MARKER_QUEST)ShowMarkerForAll(flag)See also
Section titled “See also”DestroyMarker · ShowMarker · SetMarkerPos · CreateHudText · the Compass markers group of the index
