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
The postNextState native AI script function triggers a state change in the current state machine.
()postNextState(StateName: s)
- StateName (string): The name of the next state to trigger.
()postNextState("state_invasion_2");
This example code triggers a state change to the state named "state_invasion_2".