Lua GetInRangeUnits

From ArcEmu-Wiki
Jump to: navigation, search
+/-
Main Page        LuaArcEmu Website     ArcEmu Forum     Bug Tracker



Syntax

array = pUnit:GetInRangeUnits()

Description

Returns a table of unit objects, close to pUnit.

Example 1

function ListNearestNPC(pUnit)
  for i,pNPC in pairs(pUnit:GetInRangeUnits()) do
    print(pNPC:GetName())
  end
end
Personal tools