This commit is contained in:
Applevangelist
2023-05-25 08:22:51 +02:00
parent 93a63cc868
commit 4c7239c5ec
3 changed files with 28 additions and 5 deletions

View File

@@ -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