C_Map.GetUserWaypointHyperlink

From Warcraft Wiki
Jump to navigation Jump to search

Returns a worldmap hyperlink for the currently assigned user waypoint, if one exists.

hyperlink = C_Map.GetUserWaypointHyperlink()

Returns

hyperlink
string : worldmapLink

Example

Sends any currently active waypoint to your chat.

/run SendChatMessage(C_Map.GetUserWaypointHyperlink())
Sending a map pin for a target

Sends a map pin to General chat for the target (but still uses your own location).

/run local c,p,t,m=C_Map,"player","target"m=c.GetBestMapForUnit(p)c.SetUserWaypoint{uiMapID=m,position=c.GetPlayerMapPosition(m,p)}SendChatMessage(format("%%t (%d%%)%s",UnitHealth(t)/UnitHealthMax(t)*100,c.GetUserWaypointHyperlink()),"CHANNEL",nil,1)

Patch changes

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