wowpedia
Main Menu


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

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)

Note

Any modification to the hyperlink, even a replacement of the "Map Pin Location" text, prevents the hyperlink from being sent in a message to channels or players.

Patch changes

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