post_next_state - ryzom/ryzomcore GitHub Wiki


title: Post Next State description: published: true date: 2023-03-16T23:09:23.919Z tags: editor: markdown dateCreated: 2023-03-16T22:26:37.517Z

postNextState

The postNextState native AI script function triggers a state change in the current state machine.

Syntax

()postNextState(StateName: s)

Arguments

  • StateName (string): The name of the next state to trigger.

Example

()postNextState("state_invasion_2");

This example code triggers a state change to the state named "state_invasion_2".

⚠️ **GitHub.com Fallback** ⚠️