Skip to content
MMOMinion edited this page Oct 1, 2013 · 2 revisions

Aggrolist

  • 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

Attributes of the Aggrolist entries

id
Returns EntityID "number".
aggropercentage
Returns the amount of aggro of this Entity towards the Player "number".