-
Notifications
You must be signed in to change notification settings - Fork 52
Aggrolist
MMOMinion edited this page Oct 1, 2013
·
2 revisions
- Alternative way to get all aggroed enemies is by using the EntityList with the filter "aggro".
- The Aggrolist sits on the Index of the EntityList and can be directly accessed by:
local aggrolist = EntityList.aggrolist
if ( aggrolist ) then
local i,entity = next(aggrolist)
while (i~=nil and entity ~=nil) do
-- the 'd' command is a global command for printing out information into the console
d("Index: ".. tostring(i).. " EntityID : "..tostring(entity.id).. " EntityAggro : "..tostring(entity.aggropercentage))
local i,entity = next(aggrolist,i)
end
end
- id
- Returns EntityID "number".
- aggropercentage
- Returns the amount of aggro of this Entity towards the Player "number".