Hive Delete of Destroyed Base Items

Implemented code to actually delete destroyed base items from the
database so they do not respawn on server restart.
This commit is contained in:
DarthRogue 2015-05-03 12:30:43 -05:00
parent 14cedb4445
commit 4294fc57aa

View File

@ -31,7 +31,11 @@ EtV_TouchOff =
deleteVehicle _x;
_existingDamage = damage _nearVehicle;
_nearVehicle setDamage _existingDamage + 0.34;
_destroyed = damage _nearvehicle > 0.99;
if (_destroyed) then
{
_nearVehicle call EPOCH_save_killedBuilding;
};
};
} forEach _explosives;
_unit setVariable ["charges",[]];