- Documentation
- Server events
- onPlayerWaypointSet
Event
onPlayerWaypointSet
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)