ThingCount
From Eternity Wiki
Jump to navigationJump to search
Description
This is an ACS built-in function.
Counts the number of things of given spawn ID.
Usage
int ThingCount(int type, int tid)
Parameters
- type: ACS spawn ID of things to count. If T_NONE (0), it will count all things, which may be filtered by tid.
- tid: optional TID to filter by, if nonzero.
Return value
The number of things by that criteria.
Examples
No examples given.
Notes
In case of monsters with the COUNTKILL or KILLABLE flag, it will only count them if they are alive. Dead monsters will not be counted; they don't have to be completely removed from the map, corpses won't be counted.
This function's identification in zspecial.acs is: ACC internal.