mirror of
https://github.com/EpochModTeam/Epoch.git
synced 2024-08-30 18:22:13 +00:00
Update server_init.sqf
Add 50 reserved slots to prevent despawning Vehicles, if spawned in by scripts
This commit is contained in:
parent
d6bc7a5e10
commit
760d2c2c2a
@ -140,6 +140,8 @@ _allowedVehicleListName = ["allowedVehiclesList","allowedVehiclesList_CUP"] sele
|
||||
_allowedVehiclesList = getArray(configFile >> "CfgEpoch" >> worldName >> _allowedVehicleListName);
|
||||
_vehicleSlotLimit = 0;
|
||||
{_vehicleSlotLimit = _vehicleSlotLimit + (_x select 1)} forEach _allowedVehiclesList;
|
||||
_ReservedSlots = 50;
|
||||
_vehicleSlotLimit = _vehicleSlotLimit + _ReservedSlots;
|
||||
_vehicleSlotLimit call EPOCH_load_vehicles;
|
||||
|
||||
diag_log "Epoch: Spawning vehicles";
|
||||
|
Loading…
Reference in New Issue
Block a user