set_mode - ryzom/ryzomcore GitHub Wiki
title: Set Mode description: published: true date: 2023-03-12T19:17:11.250Z tags: editor: markdown dateCreated: 2023-03-12T19:17:08.256Z
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)
- Mode (string): The mode name to set.
()setMode("Alert");
This example code sets the mode of every bot in the group to "Alert".