Lua GetZ

From ArcEmu-Wiki
Jump to: navigation, search

Usage

   :GetZ() - No Arguments

Description

Returns the Z-Value of the Unit.

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
Personal tools