Skip to content

GetEntityCensus

The entity classes of the level with the most instances.

GetEntityCensus(top)
Parameter Type
top number how many classes to list

number, string - total, list - the number of entities and a string "Class n, Class n, ..." of the top most common

local total, list = GetEntityCensus(5)
print(string.format("%d entities: %s", total, list))

CountEntities · the The player, the level and the frame group of the index