ThingCount

From Eternity Wiki
Revision as of 02:50, 10 May 2026 by Printz (talk | contribs) (Created page with "{{ACSFunction|description=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 *''tid'': optional TID to filter by, if nonzero |return=The number of things by that criteria. |id=ACC internal }}")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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
  • tid: optional TID to filter by, if nonzero

Return value

The number of things by that criteria.

Examples

No examples given.

Notes

No particular notes.

This function's identification in zspecial.acs is: ACC internal.

See also