ServersYour serverFor creatorsForumFAQDocumentationSecurity
Download the launcher
  1. Documentation
  2. Server events
  3. onPlayerWaypointSet

Event

onPlayerWaypointSet

ServerPlayersTrilogy Hub only

A player has a new game GPS waypoint (confirmed by their game): placed with a right click on the ESC map or by a script.

Handler

addEventHandler("onPlayerWaypointSet", root, function(x, y, how) ... end)

Parameters

xfloat
X.
yfloat
Y.
howstring
"map" or "script".

Source

source is the player.

Example

addEventHandler("onPlayerWaypointSet", root, function(x, y, how)
    if how == "map" then outputChatBox(("Cel: %.0f, %.0f"):format(x, y), source) end
end)

See also