onDeployStop event

This commit is contained in:
DartRuffian 2024-03-13 16:08:51 -05:00
parent 5e1771aecd
commit c3dae82915
2 changed files with 7 additions and 3 deletions

View File

@ -50,9 +50,12 @@ private _perframeCheck = {
[ [
_totalTime, _totalTime,
[_unit, _side, _typeOf, _posASL, _vectorDir, _vectorUp, _cost], [_unit, _side, _typeOf, _posASL, _vectorDir, _vectorUp, _cost],
QGVAR(deployFinished), QGVAR(deployFinished), {
QGVAR(deployCanceled), params ["_unit", "", "_typeOf"];
private _cost = _this select 6;
[QGVAR(deployCanceled), _this] call CBA_fnc_localEvent;
[QGVAR(onDeployStop), [_unit, _typeOf, _cost]] call CBA_fnc_localEvent;
},
LLSTRING(progressBarTitle), LLSTRING(progressBarTitle),
_perframeCheck _perframeCheck
] call EFUNC(common,progressBar); ] call EFUNC(common,progressBar);

View File

@ -70,6 +70,7 @@ private _mouseClickID = [_player, "DefaultAction", {GVAR(isPlacing) == PLACE_WAI
[_unit, _object] call FUNC(deployConfirm); [_unit, _object] call FUNC(deployConfirm);
} else { } else {
TRACE_1("deleting object",_object); TRACE_1("deleting object",_object);
[QGVAR(onDeployStop), [_unit, typeOf _object, _cost]] call CBA_fnc_localEvent;
deleteVehicle _object; deleteVehicle _object;
}; };
}; };