mirror of
https://github.com/FlightControl-Master/MOOSE.git
synced 2025-10-29 16:58:06 +00:00
RAT v2.2
RAT: - Added possibility to activate uncontrolled aircraft. - Added immortal option (untested). - Added invisible option (untested). - Added check that when aircraft are spawned on the runway, that they get despawned immediately. - Added RATMANAGER class. ZONE: Fix/workaround for isExist() always returning false for scenery objects.
This commit is contained in:
parent
3544f07169
commit
f2cb750aa2
@ -618,10 +618,11 @@ function ZONE_RADIUS:Scan( ObjectCategories )
|
||||
}
|
||||
|
||||
local function EvaluateZone( ZoneObject )
|
||||
if ZoneObject:isExist() then
|
||||
--if ZoneObject:isExist() then --FF: isExist always returns false for SCENERY objects since DCS 2.2 and still in DCS 2.5
|
||||
if ZoneObject then
|
||||
local ObjectCategory = ZoneObject:getCategory()
|
||||
if ( ObjectCategory == Object.Category.UNIT and ZoneObject:isActive() ) or
|
||||
ObjectCategory == Object.Category.STATIC then
|
||||
if ( ObjectCategory == Object.Category.UNIT and ZoneObject:isExist() and ZoneObject:isActive() ) or
|
||||
(ObjectCategory == Object.Category.STATIC and ZoneObject:isExist()) then
|
||||
local CoalitionDCSUnit = ZoneObject:getCoalition()
|
||||
self.ScanData.Coalitions[CoalitionDCSUnit] = true
|
||||
self:E( { Name = ZoneObject:getName(), Coalition = CoalitionDCSUnit } )
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
Loading…
x
Reference in New Issue
Block a user