ServersYour serverFor creatorsForumFAQDocumentationSecurity
Download the launcher
  1. Documentation
  2. Client functions
  3. setPlayerMapWaypointEnabled

Function

setPlayerMapWaypointEnabled

ClientPlayersTrilogy Hub only

Turns setting the GPS target with a right click on the map on or off. Turning it off is useful on a location picker screen: the right click still arrives in onClientPlayerMapClick, but the GPS stays unchanged.

Syntax

bool setPlayerMapWaypointEnabled(bool enabled)

Arguments

enabledbool
true = a right click sets the GPS target (default).

Returns

true on success.

Example

setPlayerMapWaypointEnabled(false)

See also