IsTIDUsed: Difference between revisions

From Eternity Wiki
Jump to navigationJump to search
(Created page with "'''IsTIDUsed'''(''tid'') Returns 1 if any thing with tag ''tid'' exists in the level. It doesn't matter if such tagged things are dead or alive. Category:scripting")
 
No edit summary
Line 1: Line 1:
'''IsTIDUsed'''(''tid'')
{{ACSFunction|description=Returns 1 if any thing with tag ''tid'' exists in the level.
 
|usage=''Boolean'' '''IsTIDUsed'''(''int'' ''tid'')
Returns 1 if any thing with tag ''tid'' exists in the level. It doesn't matter if such tagged things are dead or alive.
|parameters=
 
*''tid'': [[TID]] to check
[[Category:scripting]]
|return=
'''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.
||id=-47}}

Revision as of 14:52, 3 May 2026

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