mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
parent
97307769f0
commit
edefaf8220
@ -63,7 +63,11 @@ private _fnc_onFailure = {
|
||||
// Reset animation
|
||||
[_unit, "", 1] call EFUNC(common,doAnimation);
|
||||
};
|
||||
[(_digTimeLeft + 0.5), [_unit, _trench], _fnc_onFinish, _fnc_onFailure, localize LSTRING(DiggingTrench)] call EFUNC(common,progressBar);
|
||||
private _fnc_condition = {
|
||||
(_this select 0) params ["_unit"];
|
||||
"ACE_EntrenchingTool" in (_unit call EFUNC(common,uniqueItems))
|
||||
};
|
||||
[(_digTimeLeft + 0.5), [_unit, _trench], _fnc_onFinish, _fnc_onFailure, localize LSTRING(DiggingTrench), _fnc_condition] call EFUNC(common,progressBar);
|
||||
|
||||
if(_actualProgress == 0) then {
|
||||
[_unit, _trench, _trenchId, _basePos vectorDiff [0, 0, 1.0], _vecDirAndUp, _actualProgress] call FUNC(setTrenchPlacement);
|
||||
|
@ -61,7 +61,11 @@ private _fnc_onFailure = {
|
||||
// Reset animation
|
||||
[_unit, "", 1] call EFUNC(common,doAnimation);
|
||||
};
|
||||
[(_removeTimeLeft + 0.5), [_unit, _trench], _fnc_onFinish, _fnc_onFailure, localize LSTRING(RemovingTrench)] call EFUNC(common,progressBar);
|
||||
private _fnc_condition = {
|
||||
(_this select 0) params ["_unit"];
|
||||
"ACE_EntrenchingTool" in (_unit call EFUNC(common,uniqueItems))
|
||||
};
|
||||
[(_removeTimeLeft + 0.5), [_unit, _trench], _fnc_onFinish, _fnc_onFailure, localize LSTRING(RemovingTrench), _fnc_condition] call EFUNC(common,progressBar);
|
||||
|
||||
private _progressLeft = ((1 - _actualProgress) * 10) + 1;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user