post_next_state - ryzom/ryzomcore GitHub Wiki


title: Post Next State description: published: true date: 2023-03-12T23:53:36.795Z tags: editor: markdown dateCreated: 2023-03-12T23:53:33.929Z

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** ⚠️