Jump to content
  • 0

Maintain Area Broken


Ghost

Question

7 answers to this question

Recommended Posts

  • 0

I did and the maintain area script always says 0.

checked the database & db events

checked on a newly built area as well as an old one

 

removed this from maintain_area.sqf

//filter to only those that have 10% damage
_objects_filtered = [];
{
    if (damage _x >= 0.1) then {
        _objects_filtered set [count _objects_filtered, _x];
   };
} forEach _objects;
_objects = _objects_filtered;
 
and it works. re added the last section and it does not.
is there a need for the maintain area script only to update items with 0.1 dmg or not really?
Link to comment
Share on other sites

  • 0

Heres my setdamage on age mysql event. Make sure you adjust the time!

 

UPDATE `object_data` SET `Damage`=0.2 WHERE `ObjectUID` <> 0 AND `CharacterID` <> 0 AND `Datestamp` < DATE_SUB(CURRENT_TIMESTAMP, INTERVAL 5 DAY) AND ( (`Inventory` IS NULL) OR (`Inventory` = '[]') )
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Advertisement
  • Discord

×
×
  • Create New...