WoW:API Minimap GetPingPosition: Difference between revisions

From AddOn Studio
Jump to navigation Jump to search
No edit summary
 
m (Move page script moved page API Minimap GetPingPosition to WoW:API Minimap GetPingPosition without leaving a redirect)
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
{{widgetmethod}}
This function obtains the position of the last ping sent to the Minimap.
This function obtains the position of the last ping sent to the Minimap.


Line 21: Line 23:
;''Description''
;''Description''


: Obtains the coordinates of the last ping that was sent to the player's Minimap.  
: Obtains the coordinates of the last ping that was sent to the player's Minimap.
 
----
Go to [[Widget API|World of Warcraft Widget API]]<br>
Go to [[Interface Customization]]
 
{{Template:WoW API}}

Latest revision as of 04:46, 15 August 2023

Widget API ← Minimap < GetPingPosition

This function obtains the position of the last ping sent to the Minimap.

Minimap:GetPingPosition()

Arguments
none

Returns
x
x coordinates of the last ping in relation to the center
x
y coordinates of the last ping in relation to the center

Example
local x, y = Minimap:GetPingPosition()

Description
Obtains the coordinates of the last ping that was sent to the player's Minimap.