CommandT Posted March 9, 2023 Posted March 9, 2023 (edited) Hi folks, Could someone please help me achieve the following using some sort of combo of triggers, if it's possible? All planes are set to immortal. Once a plane gets hit by either a missile or guns, that plane then switches to a home-bound waypoint, ROE to "no reaction to threat" and RTBs. Can this be achieved somehow? Much much obliged! Thank you Edited March 9, 2023 by CommandT
Grimes Posted March 9, 2023 Posted March 9, 2023 It is possible but there are a number of hurdles that you have to deal with. Easiest way would be for each aircraft to be in its own group. When you make their route you set a stop condition for every single task they have to be the same thing, like a flag is true. You also need to make a trigger for each unit that checks if it has been hit. The hit event should still occur if the group is immortal. When it triggers the action needs to be to switch waypoint, set ROE, and whatever else. With scripting it would be a bit easier because you could re-use a task that gets assigned and just add the units to a list that forces them to RTB on hit events. The right man in the wrong place makes all the difference in the world. Current Projects: Grayflag Server, Scripting Wiki Useful Links: Mission Scripting Tools MIST-(GitHub) MIST-(Thread) SLMOD, Wiki wishlist, Mission Editing Wiki!, Mission Building Forum
CommandT Posted March 14, 2023 Author Posted March 14, 2023 On 3/9/2023 at 3:48 AM, Grimes said: It is possible but there are a number of hurdles that you have to deal with. Easiest way would be for each aircraft to be in its own group. When you make their route you set a stop condition for every single task they have to be the same thing, like a flag is true. You also need to make a trigger for each unit that checks if it has been hit. The hit event should still occur if the group is immortal. When it triggers the action needs to be to switch waypoint, set ROE, and whatever else. With scripting it would be a bit easier because you could re-use a task that gets assigned and just add the units to a list that forces them to RTB on hit events. Thank you very much for your input! Can you think of any way of not having to separate flights into 1 aircraft each? At least 2 in a flight would be good. I suppose there's no way of separating units within a flight? I would like to have at least a pair of jets CAP'ing together, otherwise it breaks the immersion a little bit. And in terms of scripting something like this, how difficult would it be for someone who has never done any and has no background in computing (and actively hates computers when they don't work lol)?
Grimes Posted March 14, 2023 Posted March 14, 2023 With scripting you can assign a new task to individual aircraft in a flight, for instance to make that unit RTB. However whenever you tell the flight lead to do something it trickles down to any other flight member. As a result it isn't super great if you want them all to do something different. It is best used for something like sending a flight to attack an area and micromanaging each unit to attack specific targets. I think it would probably require re-assigning the task to each flight member whenever flight lead was told to RTB. As for difficulty for someone of a skill you describe, ehhhhhhhh not at all easy. The right man in the wrong place makes all the difference in the world. Current Projects: Grayflag Server, Scripting Wiki Useful Links: Mission Scripting Tools MIST-(GitHub) MIST-(Thread) SLMOD, Wiki wishlist, Mission Editing Wiki!, Mission Building Forum
Recommended Posts