mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
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:
parent
3af1cf925f
commit
cd41594a60
@ -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;
|
||||
|
||||
|
@ -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: {
|
||||
|
Loading…
Reference in New Issue
Block a user