SetActionMode

// Sets the status of modes ACTION_MODE_* on a creature. void SetActionMode(object oCreature, int nMode, int nStatus);