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

setMode

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".

Syntax

()setMode(Mode: s)

Arguments

  • Mode (string): The mode name to set.

Examples

()setMode("Alert");

This example code sets the mode of every bot in the group to "Alert".

⚠️ **GitHub.com Fallback** ⚠️