From 3c710613a80ab2a6159ab5729737081886e071e8 Mon Sep 17 00:00:00 2001 From: Applevangelist Date: Thu, 6 Mar 2025 14:51:49 +0100 Subject: [PATCH] CONTROLLABLE added HasIRMarker --- Moose Development/Moose/Wrapper/Controllable.lua | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/Moose Development/Moose/Wrapper/Controllable.lua b/Moose Development/Moose/Wrapper/Controllable.lua index dd95b441e..2623dc6d5 100644 --- a/Moose Development/Moose/Wrapper/Controllable.lua +++ b/Moose Development/Moose/Wrapper/Controllable.lua @@ -1777,8 +1777,6 @@ function CONTROLLABLE:TaskFAC_AttackGroup( AttackGroup, WeaponType, Designation, return DCSTask end --- EN-ACT_ROUTE TASKS FOR AIRBORNE CONTROLLABLES - --- (AIR) Engaging targets of defined types. -- @param #CONTROLLABLE self -- @param DCS#Distance Distance Maximal distance from the target to a route leg. If the target is on a greater distance it will be ignored. @@ -5735,6 +5733,14 @@ function CONTROLLABLE:DisableIRMarkerForGroup() return self end +--- [GROUND] Check if an IR Spot exists. +-- @param #CONTROLLABLE self +-- @return #boolean outcome +function CONTROLLABLE:HasIRMarker() + if self.spot then return true end + return false +end + --- [Internal] This method is called by the scheduler after enabling the IR marker. -- @param #CONTROLLABLE self -- @return #CONTROLLABLE self