setupVehicles
Definition
-- @/lua/ge/extensions/core/multiSpawn.lua:797
local function setupVehicles(amount, shuffle, spawnMode, spawnGap) -- DEPRECATED, please use function spawnGroup instead
log('W', logTag, 'This function is deprecated, please use function: spawnGroup')
return spawnGroup(createGroup(), amount, {shuffle = shuffle, mode = spawnMode, gap = spawnGap})
end
Callers
@/lua/ge/extensions/editor/trafficDebug.lua
if parkingAmountChange[0] > 0 then
gameplay_parking.setupVehicles(parkingAmountChange[0], {ignoreDelete = true, ignoreParkingSpots = true})
elseif parkingAmountChange[0] < 0 then
@/lua/ge/extensions/tech/techCore.lua
gameplay_parking.setupVehicles(parkedAmount)
gameplay_traffic.setupTraffic(maxAmount, policeRatio)
@/lua/ge/extensions/gameplay/parking.lua
local function setupVehicles(amount, options) -- spawns and prepares simple parked vehicles
options = options or {}
@/lua/ge/extensions/career/modules/playerDriving.lua
-- if this would wait until player vehicle active, then the loading screen would fade out early...
gameplay_parking.setupVehicles(restrict and testTrafficAmounts.parkedCars or parkedAmount)
gameplay_traffic.setupTraffic(restrict and testTrafficAmounts.traffic + extraAmount or amount + extraAmount, 0, {policeAmount = policeAmount, simpleVehs = true, autoLoadFromFile = true})
@/lua/ge/extensions/gameplay/missions/missionManager.lua
step.validParking = gameplay_parking.setupVehicles(trafficSetup.parkedAmount)
step.validTraffic = gameplay_traffic.setupTraffic(trafficSetup.amount, 0, options)
@/lua/ge/extensions/gameplay/traffic.lua
if settings.getValue('trafficParkedVehicles') then
spawnProcess.parkingSetup = gameplay_parking.setupVehicles() -- setup parked cars first, if applicable
else
@/lua/ge/extensions/freeroam/freeroam.lua
if loadParkedVehicles then
gameplay_parking.setupVehicles(parkedVehiclesAmount)
end
log('I', logTag, string.format('Now spawning parked vehicles only for freeroam mode (%s parked vehicles)', parkedVehiclesAmount))
gameplay_parking.setupVehicles(parkedVehiclesAmount)
end