C_Map.GetUserWaypoint

From Warcraft Wiki
Jump to navigation Jump to search
GitHub Octocat.png  Townlong-Yak BAD.png  ProfIcons engineering.png  BTNTemp.png C_Map.GetUserWaypoint TheWarWithin-Icon-Inline.pngDragonflight-Icon-Inline.png + 9.0.1
GitHub Octocat.png  Townlong-Yak BAD.png  ProfIcons engineering.png  BTNTemp.png C_Map.GetUserWaypointFromHyperlink TheWarWithin-Icon-Inline.pngDragonflight-Icon-Inline.png + 9.0.1

Returns the UiMapPoint structure for the currently assigned user waypoint, if one exists.

point = C_Map.GetUserWaypoint()
      = C_Map.GetUserWaypointFromHyperlink(hyperlink)

Arguments

GetUserWaypoint

None

GetUserWaypointFromHyperlink

hyperlink
string? : worldmapLink

Returns

point
UiMapPoint
Key Type Description
uiMapID number uiMapID
position Vector2DMixin🔗
z number?

Example

Dumps the currently set waypoint.

/dump C_Map.GetUserWaypoint()
{
	uiMapID = 84,
	position = {
		y = 0.71433198451996,
		x = 0.63557040691376
	}
}

Patch changes

Shadowlands Patch 9.0.1 (2020-10-13): Added.