- Documentation
- Server events
- onPlayerMarkerHit
Event
onPlayerMarkerHit
A player entered a marker (the version from the player side).
Handler
addEventHandler("onPlayerMarkerHit", root, function(markerHit, matchingDimension) ... end)Parameters
markerHitmarker- The marker.
matchingDimensionbool- Whether in the same dimension.
Source
source is the player.
Example
addEventHandler("onPlayerMarkerHit", root, function(marker, dim)
if dim and getElementData(marker, "meta") then outputChatBox("Meta!", source) end
end)