Skip to content

CreateMapMarker

Places a marker - a point only the editor and the mode know - on the level.

Players never see a marker; the editor draws it, and the mode finds it by its tag with GetMapMarkers: spawn points, a race’s gates, where a merchant stands - placed and moved by the admins in the editor, read by the mode.

CreateMapMarker(tag, x, y, z [, opts])
Parameter Type
tag string what GetMapMarkers looks for ("spawn"; a-z, 0-9, _ and -, at most 32; "" = none)
x number metres
y number metres
z number metres; below 0 = on the ground
opts table CreateMapObject’s yaw (which way it faces), layer, group, persist (optional)

number - the marker’s id; nil and the reason

CreateMapMarker("spawn", 1290, 1095, -1, {yaw = 180})

GetMapMarkers · the The server’s map group of the index