GetActionMode

The   NWScript command is used to determine if a creature is currently in stealth mode, detect mode, or a combat mode.

Definition
Returns a TRUE if the creature is in the specified mode, and FALSE otherwise.