Lua GetY

Description

Returns the X-Value of the Unit.

Syntax

GetY() -- No Arguments

Usage/Example

function SomeUnit_SomeFunction(pUnit, Event) 
  x = pUnit:GetX() 
  y = pUnit:GetY()
  z = pUnit:GetZ()
  print "Positon of the Unit:"
  print x,y,z
end