WoW:API GetCorpseMapPosition: Difference between revisions

From AddOn Studio
Jump to navigation Jump to search
No edit summary
 
m (Recategorized)
Line 1: Line 1:
  <center>'''GetCorpseMapPosition''' ''-Documentation by [[user:Meog|Meog]]-''</center>
  <center>'''GetCorpseMapPosition''' ''-Documentation by [[user:Meog|Meog]]-''</center>


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


  GetCorpseMapPosition();
  posX, posY = GetCorpseMapPosition();


----
----
Line 13: Line 13:
;''Returns''
;''Returns''


:Number corpseX, Number corpseY
:posX, posY
:;corpseX : x value of the corpse position (in percent, relative to WorldMapDetailFrame)
:;posX : Number - X value of the corpse position (a proprotion between 0 and 1, relative to WorldMapDetailFrame)
:;corpseY : y value of the corpse position (in percent, 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 26:
;''Result''
;''Result''
  0.43320921063423, 0.69365233182907
  0.43320921063423, 0.69365233182907
----
;''Description''
: Returns the postion of the corpse on the current map. (Both values equal zero, when the corpse is not on the current map.)


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

Revision as of 19:17, 28 December 2004

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