WoW:API GetPlayerMapPosition: Difference between revisions

no edit summary
mNo edit summary
No edit summary
Line 1: Line 1:
  <center>'''GetPlayerMapPosition''' ''-Documentation by [[user:Meog|Meog]]-''</center>
  <center>'''GetPlayerMapPosition''' ''-Documentation by [[user:Meog|Meog]]-''</center>


Returns the postion of a unit on the current map
Returns the postion of a unit on the current map
Line 9: Line 10:


:("unit")
:("unit")
:;unit : String - The [[API TYPE UnitId|UnitId]] for which the position is returned. (Verified for <tt>player</tt>, <tt>party</tt>*, <tt>target</tt> and <tt>mouseover</tt> (Though the latter two only work for <b>friendly players and non hostile players of the other faction</b>). Does not appear to work for <tt>pet</tt> (Tested with warlock)).
:;unit : String - The [[API TYPE UnitId|UnitId]] for which the position is returned. (Only works with <tt>player</tt> as unit type. This was to disable range-checking mods).


----
----