OnAIBrainStateSwitched
Usage
- No return behavior
Example Autogenerated
csharp
private void OnAIBrainStateSwitched( BaseAIBrain instance, BasicAIState CurrentState )
{
Puts( "OnAIBrainStateSwitched works!" );
}
Location
- BaseAIBrain::SwitchToState(BaseAIBrain/BasicAIState newState, int stateContainerID)
csharp
//---
}
this.AddEvents(stateContainerID);
this.CurrentState = newState;
this.CurrentState.StateEnter(this, this.GetBaseEntity());
this.currentStateContainerID = stateContainerID;
Interface.CallHook("OnAIBrainStateSwitched", this, this.CurrentState);
return true;
}