mirror of
https://github.com/FlightControl-Master/MOOSE.git
synced 2026-08-22 16:05:25 +00:00
#RESCUEHELO
* Small fix to get the coordinate of an ejected/crashed unit
This commit is contained in:
@@ -805,7 +805,9 @@ function RESCUEHELO:_OnEventCrashOrEject(EventData)
|
|||||||
self:T(self.lid..text)
|
self:T(self.lid..text)
|
||||||
|
|
||||||
-- Get coordinate of unit.
|
-- 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
|
if coord and self.rescuezone:IsCoordinateInZone(coord) then
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user