This commit is contained in:
FullGas1 2025-03-26 00:01:15 +01:00
parent f83365ec63
commit 3eaa08b74e

View File

@ -2037,7 +2037,7 @@ function ctld.repackVehicle(_params, t) -- scan rrs table 'repackRequestsStack'
-- see to spawn the crate at random position heading the transport unnit
local _unitId = ctld.getNextUnitId()
local _name = string.format("%s_%i", v[1].desc, _unitId)
local relativePoint = ctld.getRelativePoint(playerPoint, 10 + i * offset, randomHeading)
local relativePoint = ctld.getRelativePoint(playerPoint, 7 + i * offset, randomHeading) -- 7 meters from the transport unit
ctld.spawnCrateStatic(PlayerTransportUnit:getCountry(), _unitId, relativePoint, _name, crateWeight,
PlayerTransportUnit:getCoalition(), mist.getHeading(PlayerTransportUnit, true))
end