WoW:API GetCorpseMapPosition: Difference between revisions

From AddOn Studio
Jump to navigation Jump to search
mNo edit summary
No edit summary
Line 26: Line 26:
;''Result''
;''Result''
  0.43320921063423, 0.69365233182907
  0.43320921063423, 0.69365233182907


----
----
{{Template:WoW API}}
{{WoW API}}
[[Category:API Functions|GetCorpseMapPosition]]
[[Category:API World Map Functions|GetCorpseMapPosition]]

Revision as of 05:21, 4 January 2006

GetCorpseMapPosition -Documentation by Meog-

Returns the postion of the player's corpse on the current map

posX, posY = GetCorpseMapPosition();

Arguments
none

Returns
posX, posY
posX
Number - X value of the corpse position (a proprotion between 0 and 1, relative to WorldMapDetailFrame)
posY
Number - Y value of the corpse position (a proportion between 0 and 1, relative to WorldMapDetailFrame)

If both posX and posY are 0, then the player is not dead, the corpse position is unknown, or not valid for the current map.


Example
local corpseX, corpseY = GetCorpseMapPosition();

Result
0.43320921063423, 0.69365233182907



Template:WoW API