mirror of
https://github.com/FlightControl-Master/MOOSE.git
synced 2025-10-29 16:58:06 +00:00
Merge remote-tracking branch 'origin/master' into develop
This commit is contained in:
commit
4d9ce80c98
@ -1224,7 +1224,7 @@ function EVENT:onEvent( Event )
|
||||
if Event.TgtObjectCategory == Object.Category.STATIC then
|
||||
-- get base data
|
||||
Event.TgtDCSUnit = Event.target
|
||||
if Event.target:isExist() and Event.id ~= 33 and not Event.TgtObjectCategory == Object.Category.COORDINATE then -- leave out ejected seat object
|
||||
if Event.target:isExist() and Event.id ~= 33 then -- leave out ejected seat object
|
||||
Event.TgtDCSUnitName = Event.TgtDCSUnit:getName()
|
||||
Event.TgtUnitName = Event.TgtDCSUnitName
|
||||
Event.TgtUnit = STATIC:FindByName( Event.TgtDCSUnitName, false )
|
||||
|
||||
@ -805,7 +805,9 @@ function RESCUEHELO:_OnEventCrashOrEject(EventData)
|
||||
self:T(self.lid..text)
|
||||
|
||||
-- Get coordinate of unit.
|
||||
local coord=unit:GetCoordinate()
|
||||
--local coord=unit:GetCoordinate()
|
||||
local Vec3 = EventData.IniDCSUnit:getPoint() -- Vec3
|
||||
local coord = COORDINATE:NewFromVec3(Vec3)
|
||||
|
||||
if coord and self.rescuezone:IsCoordinateInZone(coord) then
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user