mirror of
https://github.com/FlightControl-Master/MOOSE.git
synced 2025-08-15 10:47:21 +00:00
Updated some of the MOOSE functions
This commit is contained in:
@@ -428,7 +428,7 @@ function DETECTION_AREAS:New( DetectionSetGroup, DetectionRange, DetectionZoneRa
|
||||
self._SmokeDetectedZones = false
|
||||
self._FlareDetectedZones = false
|
||||
|
||||
self:Schedule( 0, 15 )
|
||||
self:Schedule( 0, 30 )
|
||||
|
||||
return self
|
||||
end
|
||||
@@ -611,7 +611,6 @@ function DETECTION_AREAS:NearestFAC( DetectedArea )
|
||||
local Vec3 = FACUnit:GetPointVec3()
|
||||
local PointVec3 = POINT_VEC3:NewFromVec3( Vec3 )
|
||||
local Distance = PointVec3:Get2DDistance(POINT_VEC3:NewFromVec3( FACUnit:GetPointVec3() ) )
|
||||
self:E( "Distance", Distance )
|
||||
if Distance < MinDistance then
|
||||
MinDistance = Distance
|
||||
NearestFAC = FACUnit
|
||||
@@ -620,7 +619,6 @@ function DETECTION_AREAS:NearestFAC( DetectedArea )
|
||||
end
|
||||
end
|
||||
|
||||
self:E( { NearestFAC.UnitName, MinDistance } )
|
||||
DetectedArea.NearestFAC = NearestFAC
|
||||
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user