punctual_state - ryzom/ryzomcore GitHub Wiki


title: Punctual State description: published: true date: 2023-03-12T01:19:52.481Z tags: editor: markdown dateCreated: 2023-03-11T17:53:40.743Z

punctual_state

The punctual_state action suspends the current active state for a group and begins a punctual state, which is an AI state without positional behavior. This is useful for temporary special states, for example, to suppress normal wandering and route changing behaviours while a group is under attack.

Parameter Syntax

<state name>
[...]

Parameters

  • <state name>: Name of the punctual state to begin.
  • [...]: (Optional) You can specify multiple punctual state names, it'll pick one at random.

See also

  • Begin State: An action that switches the current state of an NPC group to another state.
  • Punctual State End: An action that deactivates the current punctual state and returns to the previously suspended positional state.
  • Set Punctual State Timeout: An action that sets a timer to trigger the punctual_state_timeout event unless the punctual state is ended or changed before the timer elapses. This action is commonly used with punctual_state to control the duration of a punctual state.
⚠️ **GitHub.com Fallback** ⚠️