Lua GetLocation

From ArcEmu-Wiki
Jump to: navigation, search

How to use

Declare four variables to hold the coordinates, and assign them to the values returned from this function.

 function foo(Unit, Event)
    local x,y,z,o = Unit:GetLocation()
    print("The unit's location is "..x..", "..y)
 end
Personal tools