KcdMp.count
How many entities of a class the level holds.
Syntax
Section titled “Syntax”KcdMp.count(cls)| Parameter | Type | |
|---|---|---|
cls |
string | an entity class name ("NPC", "Horse", "AnimDoor", "Stash" …) |
Returns
Section titled “Returns”number - 0 when none or the class is unknown
Example
Section titled “Example”System.LogAlways("[KcdMp] doors: " .. KcdMp.count("AnimDoor"))See also
Section titled “See also”KcdMp.census · the Helpers group of the index
