Creates a transition between two states.
| _stateMachine | a state machine <LOCATION> |
| _originalState | state the transition origins from STRING |
| _targetState | state the transition goes to STRING |
| _condition | condition under which the transition will happen <CODE> |
| _onTransition | code that gets executed once transition happens <CODE> (Default: {}) |
| _name | name for this specific transition STRING (Default: “NONAME”) |
| _wasCreated | check if the transition was created <BOOL> |
[_stateMachine, "initial", "end", {true}, {
systemChat format [
"%1 transitioned from %2 to %3 via %4.",
_this, _thisOrigin, _thisTarget, _thisTransition
];
}, "dummyTransition"] call CBA_statemachine_fnc_addTransition;BaerMitUmlaut