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
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".