Get fuel range for a unit
Posted: Wed Jun 12, 2024 1:26 am
I would like to setup an event on detection of a unit to send an aircraft to investigate or engage that unit, but I need to make sure that the aircraft selected has the range to reach the target...but I have not found any way to get the range (combat radius) of a unit based on its load out. Effectively I am trying to get the range part of the Range & Profile column from the Aircraft Loadouts in the Database Viewer.
Or alternatively, if I can get the Performance data of the Engines, I might be able to back-calculate the range, but I can't find a way to get that value in Lua script either.
Thanks in advance
I have not found any property of either Unit or Loadout that gives me that value. Does anyone know how to do this?Or alternatively, if I can get the Performance data of the Engines, I might be able to back-calculate the range, but I can't find a way to get that value in Lua script either.
Thanks in advance