Lua GetLocation

Description

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

Usage/Example

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