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
0b3b1ea1f8
commit
f83365ec63
2
CTLD.lua
2
CTLD.lua
@ -2033,7 +2033,7 @@ function ctld.repackVehicle(_params, t) -- scan rrs table 'repackRequestsStack'
|
||||
local playerPoint = PlayerTransportUnit:getPoint()
|
||||
local offset = 5
|
||||
local randomHeading = ctld.RandomReal(_playerHeading - math.pi/4, _playerHeading + math.pi/4)
|
||||
for i = 1, v[1].cratesRequired - 1 do
|
||||
for i = 1, v[1].cratesRequired do
|
||||
-- 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)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user