Ghost Posted December 14, 2013 Report Share Posted December 14, 2013 Anyone having issues with the maintain area script not detecting any objects? Agnia-reR and frartombabogy 2 Link to comment Share on other sites More sharing options...
0 cen Posted December 14, 2013 Report Share Posted December 14, 2013 it's not broken, it only shows you items that you need to maintain. Set an object to damage over 0.1, restart your server then check the plot pole. frartombabogy and Agnia-reR 2 Link to comment Share on other sites More sharing options...
0 Ghost Posted December 15, 2013 Author Report Share Posted December 15, 2013 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 More sharing options...
0 MGT Posted December 15, 2013 Report Share Posted December 15, 2013 Create and sql that sets damage to 0.2 after xx days, I found 0.2 worked whereas 0.1 didn't. Link to comment Share on other sites More sharing options...
0 Ghost Posted December 15, 2013 Author Report Share Posted December 15, 2013 Thanks MGT However is there a specific need for the script code I referenced? Link to comment Share on other sites More sharing options...
0 ToejaM Posted December 15, 2013 Report Share Posted December 15, 2013 if (damage _x >= 0.1) then { to if (damage _x >= 0) then { Job done. Link to comment Share on other sites More sharing options...
0 Nasdero Posted December 16, 2013 Report Share Posted December 16, 2013 Create and sql that sets damage to 0.2 after xx days, I found 0.2 worked whereas 0.1 didn't. I posted this already a couple weeks ago, but nobody cares ;). http://dayzepoch.com/forum/index.php?/topic/2741-not-getting-option-to-maintain-even-after-three-days/?p=17712 Link to comment Share on other sites More sharing options...
0 Radiix Posted December 16, 2013 Report Share Posted December 16, 2013 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 More sharing options...
Question
Ghost
Anyone having issues with the maintain area script not detecting any objects?
Link to comment
Share on other sites
7 answers to this question
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now