set_activity - ryzom/ryzomcore GitHub Wiki
title: Set Activity description: published: true date: 2023-03-13T01:31:09.916Z tags: editor: markdown dateCreated: 2023-03-13T01:31:06.751Z
The setActivity native AI script function changes the activity of the group.
()setActivity(Activity: s)
- 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".
()setActivity("bandit");
This example code gives a "bandit" activity to the group.