From ee59d999f54c639a90932872d6ddaf229e682bf2 Mon Sep 17 00:00:00 2001 From: Applevangelist Date: Mon, 30 Jan 2023 18:00:16 +0100 Subject: [PATCH] #POINT * Added COORDINATE:SetAtLandheight() --- Moose Development/Moose/Core/Point.lua | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/Moose Development/Moose/Core/Point.lua b/Moose Development/Moose/Core/Point.lua index a52f4a9da..0a9d28e25 100644 --- a/Moose Development/Moose/Core/Point.lua +++ b/Moose Development/Moose/Core/Point.lua @@ -540,7 +540,7 @@ do -- COORDINATE local gotscenery=false local function EvaluateZone(ZoneObject) - + BASE:T({ZoneObject}) if ZoneObject then -- Get category of scanned object. @@ -1321,7 +1321,15 @@ do -- COORDINATE self.y=alt return self end - + + --- Set altitude to be at land height (i.e. on the ground!) + -- @param #COORDINATE self + function COORDINATE:SetAtLandheight() + local alt=self:GetLandHeight() + self.y=alt + return self + end + --- Build an air type route point. -- @param #COORDINATE self -- @param #COORDINATE.WaypointAltType AltType The altitude type. @@ -1947,7 +1955,6 @@ do -- COORDINATE -- @param #COORDINATE self -- @param #string name (Optional) Name of the fire to stop it, if not using the same COORDINATE object. function COORDINATE:StopBigSmokeAndFire( name ) - self:F2( { name = name } ) name = name or self.firename trigger.action.effectSmokeStop( name ) end