Lore archive · Warcraft Wiki, 2023 dump
API GetCorpseMapPosition
Last wiki revision 2020-04-04
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.
local corpseX, corpseY = GetCorpseMapPosition;
- Example
0.43320921063423, 0.69365233182907
- Result
Source
https://warcraft.wiki.gg/wiki/API_GetCorpseMapPosition · retrieved 2023-11-13 · CC BY-SA 4.0
Converted from wikitext with templates, tables and images removed, so some sentences may be missing values.
This archive predates WoW: Forever. For collected gameplay facts see the Forever database. Search the archive.