- Documentation
- Shared functions
- setMarkerType
Function
setMarkerType
Changes a marker's type without recreating it (e.g. a cylinder becomes an arrow).
Syntax
bool setMarkerType(marker theMarker, string markerType)Arguments
theMarkermarker- The marker.
markerTypestring"cylinder","checkpoint","arrow","corona"or"ring".
Returns
true on success.
Example
local marker = createMarker(0, 0, 3, "cylinder")
setMarkerType(marker, "arrow")
See also
getMarkerTypeReturns the marker type ("cylinder","checkpoint","arrow","corona","ring").createMarkerCreates a marker in the world: a coloured cylinder to step into (e.g. a job entrance), an arrow above a spot, a corona or a ring. When a player enters it, the server firesonMarkerHitwith the player as the first argument, andonMarkerLeaveon exit. Types:"cylinder","checkpoint","arrow","corona"(a soft ball of light facing the camera),"ring". The size is the diameter in metres.