LuaBridge:Methods:Object:CalcDistanceToLocation

From ArcEmu-Wiki
Jump to: navigation, search

Returns the distance between the object and the specified location vector.

Usage:

local function OnCombat(this, _, hostile)
 print("Distance from "..tostring(this).." to "..tostring(hostile).." is :"..this:CalcDistanceToLocation(hostile:GetPositionX(), hostile:GetPositionY(), hostile:GetPositionZ() ) )
end

Return to Methods

Personal tools