GetMarkerTarget
Jump to navigation
Jump to search
This function returns the x,y,z-position of the specified markers target, the position it points to.
Syntax
Click to expand [+]
ServerClick to expand [+]
ClientExample
This example outputs the markers target (if available) when a player hits a marker.
function nextCheck(player) local x,y,z = getMarkerTarget(source) -- get the marker target if (x ~= false) then -- if a target is set for the marker, then.. outputChatBox("Next checkpoint at: "..x.." "..y.." "..z,player) -- output a message with the coordinates end end addEventHandler("onMarkerHit",getRootElement(),nextCheck) -- add an event handler for the 'onMarkerHit' event
See Also
- createMarker
- getMarkerColor
- getMarkerCount
- getMarkerIcon
- getMarkerSize
- getMarkerTarget
- getMarkerType
- setMarkerColor
- setMarkerIcon
- setMarkerSize
- setMarkerTarget
- setMarkerType
- isElementWithinMarker