The setMode native AI script function is used to set the mode of every bot in a group. The valid modes are "Normal", "Sit", "Eat", "Rest", "Alert", "Hungry", and "Death".
()setMode(Mode: s)
()setMode("Alert");
This example code sets the mode of every bot in the group to "Alert".