Towing - Add CBA event for towing start and cancel (#9178)

Co-authored-by: commy2 <commy-2@gmx.de>
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
This commit is contained in:
Ellis Nielsen 2023-05-01 12:39:22 -05:00 committed by GitHub
parent 3af1cf925f
commit cd41594a60
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

View File

@ -31,4 +31,5 @@ _unit removeItem _ropeClass;
GVAR(cancel) = false;
GVAR(canAttach) = false;
[LINKFUNC(towStateMachinePFH), 0, [TOW_STATE_ATTACH_PARENT, _unit, _target, objNull, _ropeLength, _ropeClass]] call CBA_fnc_addPerFrameHandler;
[QGVAR(ropeDeployed), [_unit, _target, _ropeClass]] call CBA_fnc_localEvent;

View File

@ -140,7 +140,7 @@ switch (_state) do {
[_unit, _ropeClass, true] call CBA_fnc_addItem;
_args set [0, TOW_STATE_CLEANUP];
GVAR(cancel) = false;
[QGVAR(ropeDeployCanceled), [_unit, _ropeClass]] call CBA_fnc_localEvent;
(localize LSTRING(canceled)) call CBA_fnc_notify;
};
case TOW_STATE_CLEANUP: {