Skip to content

set_activity

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

title: Set Activity description: published: true date: 2023-03-16T23:09:54.406Z tags: editor: markdown dateCreated: 2023-03-16T22:27:17.157Z

setActivity

The setActivity native AI script function changes the activity of the group.

Syntax

()setActivity(Activity: s)

Arguments

  • Activity (string): The activity name the group will take. Valid activities are: "no_change", "escorted", "guard", "guard_escorted", "normal", "faction", "faction_no_assist", and "bandit".

Example

()setActivity("bandit");

This example code gives a "bandit" activity to the group.

Clone this wiki locally