Skip to content

WorldMarker

Any of the four things your gamemode puts in the world with the same calls: a text label, a map icon, a checkpoint or an area. The scriptMarkerCreated, scriptMarkerUpdated and scriptMarkerDestroyed events give one; markerKind says which it is.

type WorldMarker = TextLabel | MapIcon | Checkpoint | Area;
markerKind Type Made with
"textLabel" TextLabel textLabels.create
"mapIcon" MapIcon mapIcons.create
"checkpoint" Checkpoint checkpoints.create
"area" Area areas.create

Every kind has id, colorRgba, interior, virtualWorld, visible and players; see MarkerTargeting. An ID is not used again while the server runs, by any kind.