Player State Machines
How to manipulate existing PSMs, or create your own.
playerStateMachine {
stateMachineListDefinitions += [ "playerStateMachineDefinitions.MyMod" ];
stateMachineList_prePhysics += [ "MyMod" ];
}playerStateMachine.MyMod {
string typeName = "MyMod";
string definitionName = "MyMod";
bool default = false;
}playerStateMachineDefinitions.MyMod {
CName stateMachineBodyName = "gamestateMachineStateMachineBody";
string name = "MyMod";
string type = "MyMod";
// the prefix used in your state definitions below
string packageName = "playerStateMachineMyMod";
// a list of all state tweak groups, without the package name
string[] states = [
"myModEnabled",
"myModDisabled"
];
string startingState = "myModDisabled";
}State Definitions
How the state definitions work
Advanced Options
Starting/Stopping the State Machine
Last updated