Setting damage to destroyed objects

Hi.
While updating my server to 1.0.6.1 I've run into database saving problem.
Buildings deployed trough alchemical crafting (or what is it's name now?) are indestructible.
I solved half of this problem by adding damagehandler to theese buildings in server_monitor, but the game still does not save damage to DB so destroyed buildings respawn on restart...

any ideas?
 

FallingSheep

OpenDayZ Lord!
a better fix for the damage issue is in the custom_build.sqf (well not better but cleaner keeps the code in its script :p)
under this section
Code:
if(!_cancel) then {
// Start Build
_tmpbuilt = createVehicle [_classname, _location, [], 0, "CAN_COLLIDE"];
add this
Code:
_tmpbuilt addEventHandler ["HandleDamage", {true}];
also if possible can you paste your
server_monitor.sqf and your custom_build.sqf so i can checkem out and see if anythings up with em for ya :)
 
Top