SetActionMode

The   NWScript command is used to force a creature into or out of stealth mode, detect mode, or a combat mode.