CheckActorState

From ZDoom Wiki
Jump to: navigation, search

bool CheckActorState (int tid, str statename [, bool exact]);

Usage

Checks to see if the actor with the matching TID has the specified state. If tid is 0, the check is performed on the activator of the script.

Parameters

  • tid: The TID of the actor on which to perform the state check.
  • statename: The state to check for.
  • exact: Specifies whether or not partial state name matches are accepted (see SetActorState for more information and an example). Default is FALSE.

Return value

The function returns true if a matching state is found, otherwise it returns false.

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.