GetAILevel

The   NWScript command returns the "intensity" at which the AI of a creature should be operating. (For non-creature objects, the returned level is "very low", not "invalid" as might be expected.)

BioWare uses this command to abort the standard OnHeartbeat event handler when the AI level is "very low" (typically meaning that the area can be considered "inactive" due to a lack of players seeing it).

Definition
The return value is an AI_LEVEL_* constant.