mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
onDeployStop event
This commit is contained in:
parent
5e1771aecd
commit
c3dae82915
@ -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);
|
||||||
|
|
||||||
|
@ -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;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user