diff --git a/SQF/dayz_code/actions/modular_build.sqf b/SQF/dayz_code/actions/modular_build.sqf index b67b9c7c0..caae3aac2 100644 --- a/SQF/dayz_code/actions/modular_build.sqf +++ b/SQF/dayz_code/actions/modular_build.sqf @@ -417,6 +417,8 @@ if (_canBuild select 0) then { while {_isOk} do { //publish phase + format[localize "str_epoch_player_139",_text, (_counter + 1),_limit] call dayz_rollingMessages; //report how many steps are done out of total limit + ["Working",0,[100,15,10,0]] call dayz_NutritionSystem; player playActionNow "Medic"; //animation @@ -461,8 +463,6 @@ if (_canBuild select 0) then { _counter = _counter + 1; }; - format[localize "str_epoch_player_139",_text, _counter,_limit] call dayz_rollingMessages; //report how many steps are done out of total limit - if(_counter == _limit) exitWith { //if all steps done proceed with next step, otherwise cancel publish _isOk = false; _proceed = true; diff --git a/SQF/dayz_code/actions/player_build.sqf b/SQF/dayz_code/actions/player_build.sqf index a0ebcf28c..c8d0c7381 100644 --- a/SQF/dayz_code/actions/player_build.sqf +++ b/SQF/dayz_code/actions/player_build.sqf @@ -327,6 +327,8 @@ if (_canBuild select 0) then { _counter = 0; while {_isOk} do { + + format[localize "str_epoch_player_139",_text, (_counter + 1),_limit] call dayz_rollingMessages; ["Working",0,[100,15,10,0]] call dayz_NutritionSystem; player playActionNow "Medic"; @@ -371,8 +373,6 @@ if (_canBuild select 0) then { _counter = _counter + 1; }; - format[localize "str_epoch_player_139",_text, _counter,_limit] call dayz_rollingMessages; - if(_counter == _limit) exitWith { _isOk = false; _proceed = true;