This commit is contained in:
Applevangelist
2023-07-01 13:08:00 +02:00
parent 23740d12eb
commit b3e9a2b64d
7 changed files with 20 additions and 20 deletions

View File

@@ -1501,18 +1501,16 @@ function AIRBASE:FindFreeParkingSpotForAircraft(group, terminaltype, scanradius,
-- Get the aircraft size, i.e. it's longest side of x,z.
local aircraft = nil -- fix local problem below
local _aircraftsize, ax,ay,az
-- SU27 dimensions as default
local _aircraftsize = 23
local ax = 23 -- l
local ay = 7 -- h
local az = 17 -- w
if group and group.ClassName == "GROUP" then
aircraft=group:GetUnit(1)
if aircraft then
_aircraftsize, ax,ay,az=aircraft:GetObjectSize()
end
else
-- SU27 dimensions
_aircraftsize = 23
ax = 23 -- length
ay = 7 -- height
az = 17 -- width
end

View File

@@ -20,7 +20,7 @@
-- @module Wrapper.Unit
-- @image Wrapper_Unit.JPG
---
-- @type UNIT
-- @field #string ClassName Name of the class.
-- @field #string UnitName Name of the unit.