Use SetPlayerWaypointByWorldLocation to reset the original player waypoint without switching maps. Before starting to measure, we need to figure out the waypoint coordinates in the world space with the help of GetUnitWorldPosition, GetMapPlayerPosition and GetMapPlayerWaypoint.
Use
SetPlayerWaypointByWorldLocation
to reset the original player waypoint without switching maps. Before starting to measure, we need to figure out the waypoint coordinates in the world space with the help ofGetUnitWorldPosition
,GetMapPlayerPosition
andGetMapPlayerWaypoint
.