State

The NPC's State and Condition helps the NPC decide on an ideal Schedule. At any given time the NPC will only ever be in one state. You can change the state anywhere in your NPC logic with SetState(), for instance SetState( NPC_STATE_ALERT );