-
Notifications
You must be signed in to change notification settings - Fork 94
begin_state
Ryzom Core Wiki edited this page Jul 8, 2024
·
4 revisions
title: Begin State description: published: true date: 2023-03-16T23:13:23.261Z tags: editor: markdown dateCreated: 2023-03-16T22:31:43.867Z
The begin_state action switches the NPC to another state.
<state name>
- <state name>: Name of the state to switch to.
- Punctual State: An action that suspends the current active state and begins a punctual state, which has no positional behavior. Punctual states can be used for temporary changes in behavior.
- Random Select State: An action that changes the state of the NPC group to one of the listed states at random based on their assigned weights. This action can be used to introduce some variety in the behavior of the NPC group.
-
Set State Timeout: An action that sets up a timer that triggers the
state_timeout
event unless the state is changed before the timer elapses. This action can be used to automatically switch to another state after a certain amount of time has passed.