IsTIDUsed: Difference between revisions

From Eternity Wiki
Jump to navigationJump to search
No edit summary
No edit summary
 
Line 6: Line 6:
'''TRUE''' if a thing with given TID exists.
'''TRUE''' if a thing with given TID exists.
|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.
|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.
||id=-47}}
|id=-47
|seealso=
*[[UniqueTID]]}}

Latest revision as of 06:20, 10 May 2026

Description[edit]

This is an ACS built-in function.

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

Usage[edit]

Boolean IsTIDUsed(int tid)

Parameters[edit]

  • tid: TID to check

Return value[edit]

TRUE if a thing with given TID exists.

Examples[edit]

No examples given.

Notes[edit]

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[edit]