Hello,
I have done this to my maintain_area.sqf
if (DZE_ActionInProgress) exitWith { cutText [(localize "STR_EPOCH_ACTIONS_2") , "PLAIN DOWN"]; }; DZE_ActionInProgress = true; player removeAction s_player_maintain_area; s_player_maintain_area = 1; player removeAction s_player_maintain_area_preview; s_player_maintain_area_preview = 1; _target = cursorTarget; // Plastic_Pole_EP1_DZ _objectClasses = DZE_maintainClasses; _range = DZE_maintainRange; // set the max range for the maintain area _objects = nearestObjects [_target, _objectClasses, _range]; //filter to only those that have 10% damage //_objects_filtered = []; //{ // if (damage _x >= DZE_DamageBeforeMaint) then { // _objects_filtered set [count _objects_filtered, _x]; // }; //} forEach _objects; //_objects = _objects_filtered; // TODO dynamic requirements based on used building parts? _count = count _objects; if (_count == 0) exitWith { cutText [format[(localize "STR_EPOCH_ACTIONS_22"), _count], "PLAIN DOWN"]; DZE_ActionInProgress = false; s_player_maintain_area = -1; s_player_maintain_area_preview = -1; }; _requirements = []; switch true do { case (_count <= 15): {_requirements = []}; case (_count <= 20): {_requirements = []}; case (_count <= 25): {_requirements = []}; case (_count <= 30): {_requirements = []}; case (_count <= 40): {_requirements = []}; case (_count <= 50): {_requirements = []}; case (_count <= 75): {_requirements = []}; case (_count <= 100): {_requirements = []}; case (_count <= 125): {_requirements = []}; case (_count <= 150): {_requirements = []}; case (_count <= 200): {_requirements = []}; case (_count <= 250): {_requirements = []}; case (_count <= 300): {_requirements = []}; case (_count > 350): {_requirements = []}; };
I have commented out the filtering part to only maintain damaged objects so it can be maintained regardless
I'm not sure how maintaining works in the first place does it update the object on the DB and anything that hasn't been updated gets deleted after the time set in Hiveext.ini
Because i am not seeing the walls and that updating in the last updated tab?
Please Help