begin_state - ryzom/ryzomcore GitHub Wiki


title: Begin State description: published: true date: 2023-03-12T01:17:13.935Z tags: editor: markdown dateCreated: 2023-03-11T14:02:18.407Z

begin_state

The begin_state action switches the NPC to another state.

Parameter Syntax

<state name>

Parameters

  • <state name>: Name of the state to switch to.

See also

  • 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.
⚠️ **GitHub.com Fallback** ⚠️