ServersYour serverFor creatorsForumFAQDocumentationSecurity
Download the launcher
  1. Documentation
  2. Client events
  3. onClientPlayerMarkerHit

Event

onClientPlayerMarkerHit

ClientBrowserTrilogy Hub only

A player entered a marker, in this game. The same as onClientMarkerHit, but the source is the player, so you can attach the handler to localPlayer.

Handler

addEventHandler("onClientPlayerMarkerHit", root, function(markerHit, matchingDimension) ... end)

Parameters

markerHitmarker
The marker.
matchingDimensionbool
Whether in the same dimension.

Source

source is the player.

Example

addEventHandler("onClientPlayerMarkerHit", localPlayer, function(marker, dim)
    if dim then outputChatBox("Znacznik typu " .. getMarkerType(marker)) end
end)

See also