Critters
critters
This fakeunit retrieves a list of critters.
Returns TABLE
- Returns a table indexed by GUID, containing the critters units.
Examples:
-- DSL Mode
{ACTION, ACTION, "critters"},
-- Lua Mode
local critters = _A.OM:Get('Critters')
for _,Obj in pairs(critters) do
-- Do something with the object
print( Obj:Distance() )
end
CritterID
This fakeunit finds a critter unit with a specific id.
Parameters
NUMBER
: Theid
of the critter unit to search for.
Returns guid/key
- Returns the critter unit with the specified id.
Examples:
-- DSL Mode
{ACTION, ACTION, "CritterID(12345)"},
-- Lua Mode
local critter = Object("CritterID(12345)")
if critter then
-- Do something with the critter unit
print( critter.name )
end