mirror of
https://github.com/DarthRogue/EtV.git
synced 2024-08-30 16:52:14 +00:00
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:
parent
14cedb4445
commit
4294fc57aa
@ -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",[]];
|
||||
|
Loading…
Reference in New Issue
Block a user