Novan Posted March 4, 2023 Posted March 4, 2023 Is there a way to limit how much fuel the AI takes on during recovery operations? Currently they fill up completely which is not realistic and makes the recovery tanker useless after only 1 or 4 planes depending on how much fuel the plane can hold. I've been looking in the scripts for a way to interrupt the process, once the fuel level is about 20%, but have not found anything I can use at the unit level. Ideally when setting up the tanking task on the tanker there should be some kind of option to limit the maximum amount of fuel it will give each aircraft.
TEMPEST.114 Posted March 4, 2023 Posted March 4, 2023 Only way I can think of is to detect the refuelling event and if it's an AI aircraft, give them a new task to immediately land or go somewhere. You can get the fuel of the ai aircraft and wait until they have a limit of a %'age of fuel you want and then give them a new task. 1
SUNTSAG Posted March 4, 2023 Posted March 4, 2023 No scripting was required in the example mission provided. 1. AI starts with 40% fuel and needs tanking. 2. When AI fuel reaches 60% it stops tanking and the tanker stops tanking it. 3. AI breaks off and forms up right of the tanker. 4. When AI fuel is less than 60% it stops flying in formation and proceeds to a designated waypoint. Only three triggers were required to set this entire sequence of events up, plus some additional triggered actions and stop conditions. HARRIER AIrefuel.miz 1 Callsign: NAKED My YouTube Channel [sIGPIC][/sIGPIC]
Novan Posted March 4, 2023 Author Posted March 4, 2023 (edited) 47 minutes ago, SUNTSAG said: No scripting was required in the example mission provided. 1. AI starts with 40% fuel and needs tanking. 2. When AI fuel reaches 60% it stops tanking and the tanker stops tanking it. 3. AI breaks off and forms up right of the tanker. 4. When AI fuel is less than 60% it stops flying in formation and proceeds to a designated waypoint. Only three triggers were required to set this entire sequence of events up, plus some additional triggered actions and stop conditions. HARRIER AIrefuel.miz 10.81 kB · 0 downloads Ran the mission, unfortunately the Harrier never refueled. Changed waypoint 1 to initiate refueling and it worked as you described. On the plus side it worked, on the down side that would be a lot of triggers to create for every unit assigned to land at on a carrier in even a small mission. I'll have to figure out a way to identify units fueling off specific tankers and see if I can apply the same logic in scripts instead of triggers, but there is still the issue of multiple places in a group. The push task is going to impact the entire group as it is a group command. If there is more than one plane in the group the only one impacted by the limit is the unit the trigger is set around. Once that unit meets the requirement the group will move on leaving the other units either full or with no fuel added depending on sequence. I still think being able to set a fuel transfer cap on a tanker would be the easiest all-around solution. Being able to set it by unit or group would be even better. Edited March 4, 2023 by Novan
Recommended Posts