C_Map .GetUserWaypointHyperlink
Jump to navigation
Jump to search
Flavors |
---|
Links |
Info |
Added in 9.0.1 |
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())
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
Patch 9.0.1 (2020-10-13): Added.