Fixed bug with convoys sometimes stuck in trees an buildings

This commit is contained in:
Ambroise Garel 2025-07-23 11:25:48 +02:00
parent 28927248b2
commit 693a280555

View File

@ -385,6 +385,12 @@ do
y = vec2.y + unitOffset.y
}
if options.onRoad then
local posOnRoads = DCSEx.world.getClosestPointOnRoadsVec2(unitTable)
unitTable.x = posOnRoads.x
unitTable.y = posOnRoads.y
end
if isAirUnit and aircraftDB then
unitTable.hardpoint_racks = true
unitTable.psi = 1.7703702498393