WoW:API GetCorpseMapPosition: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
m (Move page script moved page API GetCorpseMapPosition to API GetCorpseMapPosition without leaving a redirect) |
||
| (4 intermediate revisions by 4 users not shown) | |||
| Line 1: | Line 1: | ||
{{wowapi}} | |||
Returns the postion of the player's corpse on the current map | |||
posX, posY = GetCorpseMapPosition(); | |||
GetCorpseMapPosition(); | |||
---- | ---- | ||
| Line 13: | Line 12: | ||
;''Returns'' | ;''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. | |||
---- | ---- | ||
| Line 24: | Line 25: | ||
;''Result'' | ;''Result'' | ||
0.43320921063423, 0.69365233182907 | 0.43320921063423, 0.69365233182907 | ||
Latest revision as of 04:45, 15 August 2023
← WoW API < GetCorpseMapPosition
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