Flickering19966@legacy41540688 (talk | contribs) m (Recategorized) |
m ({{wowapi}}) |
||
(2 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
+ | {{wowapi}} |
||
− | <center>'''GetCorpseMapPosition''' ''-Documentation by [[user:Meog|Meog]]-''</center> |
||
− | |||
Returns the postion of the player's corpse on the current map |
Returns the postion of the player's corpse on the current map |
||
Line 26: | Line 25: | ||
;''Result'' |
;''Result'' |
||
0.43320921063423, 0.69365233182907 |
0.43320921063423, 0.69365233182907 |
||
− | |||
− | ---- |
||
− | {{Template:WoW API}} |
||
− | [[Category:API World Map Functions|GetCorpseMapPosition]] |
Revision as of 09:53, 18 June 2006
Automated updating of API pages at this location, to reflect patch changes, has ceased from 10.1.7 onwards. |
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