GetEntityCensus
The entity classes of the level with the most instances.
Syntax
Section titled “Syntax”GetEntityCensus(top)| Parameter | Type | |
|---|---|---|
top |
number | how many classes to list |
Returns
Section titled “Returns”number, string - total, list - the number of entities and a string "Class n, Class n, ..." of the top most common
Example
Section titled “Example”local total, list = GetEntityCensus(5)print(string.format("%d entities: %s", total, list))See also
Section titled “See also”CountEntities · the The player, the level and the frame group of the index
