Skip to content

set_mode

Ryzom Core Wiki edited this page Jul 8, 2024 · 3 revisions

title: Set Mode description: published: true date: 2023-03-16T23:11:05.017Z tags: editor: markdown dateCreated: 2023-03-16T22:28:46.002Z

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

Clone this wiki locally