teleportGroup
Definition
-- @/lua/ge/extensions/core/multiSpawn.lua:642
local function placeGroup(vehIds, options) -- teleports a group of active vehicles into a new formation
if not vehIds or not vehIds[1] then return end
local transformData
local instant = options and options.instant
if options and type(options.customTransforms) == 'table' and #options.customTransforms >= #vehIds then
transformData = options.customTransforms
else
transformData = createSpawnPositions(#vehIds, options)
end
if not instant then
extensions.core_jobsystem.create(workPlaceVehicles, 1, vehIds, transformData, options)
else
workPlaceVehicles(nil, vehIds, transformData, options)
end
end
Callers