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}}

Latest revision as of 14:52, 3 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]