Prevent multiple Slots by deleting already killed Vehicles (with AdminTool)

This commit is contained in:
He-Man 2019-03-03 01:55:44 +01:00
parent 6e50ce6763
commit d6267babb1

View File

@ -21,7 +21,7 @@ if (!isNull _vehicle) then {
if (_vehSlot != "ABORT") then {
_vehHiveKey = format ["%1:%2", (call EPOCH_fn_InstanceID), _vehSlot];
["Vehicle", _vehHiveKey] call EPOCH_fnc_server_hiveDEL;
EPOCH_VehicleSlots pushBack _vehSlot;
EPOCH_VehicleSlots pushBackUnique _vehSlot;
missionNamespace setVariable ['EPOCH_VehicleSlotCount', count EPOCH_VehicleSlots, true];