IsTIDUsed

From ZDoom Wiki
Jump to: navigation, search

(New from 2.7.1)

bool IsTIDUsed (int tid)

Usage

Returns whether any actors using the given TID exist. This is more efficient than ThingCount(tid, T_NONE), because it only needs to check for one actor with the TID and not all of them. It also makes no distinction between dead things and live things like ThingCount does.

Parameters

Return value

TRUE (1) if any actor using that TID exists, alive or dead; FALSE (0) otherwise.

Examples

Nuvolachalk.png Note: This article lists no examples. If you make use of this feature in your own project(s) or know of any basic examples that could be shared, please add them. This will make it easier to understand for future authors seeking assistance. Your contibutions are greatly appreciated.