CBA_statemachine_fnc_manualTransition

Description

Manually triggers a transition.

Parameters

_listItemthe item which should transition <any namespace type>
_stateMachinea state machine <LOCATION>
_thisOriginstate the transition origins from STRING
_thisTargetstate the transition goes to STRING
_onTransitioncode that gets executed once transition happens <CODE> (Default: {})
_thisTransitionname for this specific transition STRING (Default: “MANUAL”)

Returns

Nothing

Examples

[_stateMachine, "initial", "end", {
    systemChat format [
        "%1 transitioned from %2 to %3 manually.",
        _this, _thisOrigin, _thisTarget
    ];
}, "dummyTransition"] call CBA_statemachine_fnc_manualTransition;

Author

BaerMitUmlaut

string used by format
Close