IsTIDUsed

From Eternity Wiki
Revision as of 14:52, 3 May 2026 by Printz (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

Description

This is an ACS built-in function.

Returns 1 if any thing with tag tid exists in the level.

Usage

Boolean IsTIDUsed(int tid)

Parameters

  • tid: TID to check

Return value

TRUE if a thing with given TID exists.

Examples

No examples given.

Notes

It doesn't matter if such tagged things are dead or alive. This works for any special values for TID, so for example you can check if player 2 is present in the game by checking IsTIDUsed(-2). See the TID definition for details.

This function's identification in zspecial.acs is: -47.

See also