mirror of
https://github.com/ciribob/DCS-CTLD.git
synced 2025-08-15 06:17:22 +00:00
fixes
This commit is contained in:
parent
9c25240c43
commit
9def2f1a3a
6
CTLD.lua
6
CTLD.lua
@ -2029,8 +2029,8 @@ function ctld.repackVehicle(_params, t) -- scan rrs table 'repackRequestsStack'
|
||||
if repackableUnit then
|
||||
if repackableUnit:isExist() then
|
||||
--ici calculer le heading des spwans à effectuer
|
||||
for i = 1, v[1].cratesRequired do
|
||||
local _point = { x = spawnRefPoint.x + (i * 5), z = spawnRefPoint.z }
|
||||
for i = 0, v[1].cratesRequired - 1 do
|
||||
local _point = { x = spawnRefPoint.x + 5 + (i * 3), z = spawnRefPoint.z }
|
||||
-- see to spawn the crate at random position heading the transport unit with ctld.getPointAtDirection(_unit, _offset, _directionInRadian)
|
||||
local _unitId = ctld.getNextUnitId()
|
||||
local _name = string.format("%s_%i", v[1].desc, _unitId)
|
||||
@ -2113,7 +2113,7 @@ function ctld.updateDynamicLogisticUnitsZones() -- remove Dynamic Logistic Units
|
||||
end
|
||||
end
|
||||
end
|
||||
return 5 -- reschedule the function in 5 second
|
||||
return 5 -- reschedule the function in 5 seconds
|
||||
end
|
||||
|
||||
-- ***************************************************************
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user