The postNextState native AI script function triggers a state change in the current state machine.
()postNextState(StateName: s)
()postNextState("state_invasion_2");
This example code triggers a state change to the state named "state_invasion_2".