Epoch Base Maintenance

HiveExt.ini
Code:
[Objects]

CleanupPlacedAfterDays = -1

Also remove the Option in your fn_selfaction:

Code:
    /*
    // inplace maintenance tool
    if((_cursorTarget isKindOf "ModularItems" or _cursorTarget isKindOf "DZE_Housebase" or _typeOfCursorTarget == "LightPole_DZ") and (damage _cursorTarget >= DZE_DamageBeforeMaint)) then {
        if ((s_player_lastTarget select 2) != _cursorTarget) then {
            if (s_player_maint_build > 0) then {  
                player removeAction s_player_maint_build;
                s_player_maint_build = -1;
            };
        };

        if (s_player_maint_build < 0) then {
            s_player_lastTarget set [2,_cursorTarget];
            s_player_maint_build = player addAction [format[localize "STR_EPOCH_ACTIONS_MAINTAIN",_text], "\z\addons\dayz_code\actions\player_buildingMaint.sqf",_cursorTarget, -2, false, true, "",""];
        };
    } else {
        player removeAction s_player_maint_build;
        s_player_maint_build = -1;
    };
    */

Maybe you also have a sql query where you set demage to the buildings or delete them. Just check for it and deactivate it :)
 
Right now we're just using a SQL event to update the time stamps in the DB. but thank you for reminding me to take the option out of the fn_selfaction
 
Back
Top