SGT Coyle Posted April 26, 2021 Share Posted April 26, 2021 Is it possible to have the same plane repeat the same route? So it activates on the easternmost part of the map, flies across, then deactivates. Then after a few minutes have it activate again over in the east and repeat the process. Looking for options that don't involve Moose, MIST, or the like. Night Ops in the Harrier IYAOYAS Link to comment Share on other sites More sharing options...
cfrag Posted April 26, 2021 Share Posted April 26, 2021 If by "options that don't involve Moose, MIST, or the like" you mean Lua scripting, then no. ME currently does not support spawning units, it can only activate units that were placed before. With scripting, yes. Link to comment Share on other sites More sharing options...
SGT Coyle Posted April 26, 2021 Author Share Posted April 26, 2021 8 minutes ago, cfrag said: If by "options that don't involve Moose, MIST, or the like" you mean Lua scripting, then no. ME currently does not support spawning units, it can only activate units that were placed before. With scripting, yes. cfrag, Scripting YES!. Just not interested in worrying about updates breaking a complicated script I don't understand. Not afraid of scripting, but no idea where to start with this. Night Ops in the Harrier IYAOYAS Link to comment Share on other sites More sharing options...
StevanJ Posted April 26, 2021 Share Posted April 26, 2021 (edited) 1 hour ago, SGT Coyle said: Is it possible to have the same plane repeat the same route? So it activates on the easternmost part of the map, flies across, then deactivates. Then after a few minutes have it activate again over in the east and repeat the process. Looking for options that don't involve Moose, MIST, or the like. You can switch waypoint- Which means the same Aircraft can fly around and around for as long as theres fuel in its tanks.. You can do the same, and tell the aircraft to refuel at a tanker, so long as the tanker has fuel in its tanks. You can activate a group at the start of its route, and have him do loops. You can deactivate a group at the end of its route. Once a group is deactivated, its dead. It cannot be respawned. So either have a different aircraft spawn at the start of the route upon deactivation or death, or send the same aircraft back to the start of its route. Edited April 26, 2021 by StevanJ Link to comment Share on other sites More sharing options...
cfrag Posted April 26, 2021 Share Posted April 26, 2021 (edited) Ah, well in that case you first create the unit data for the group (even if single-ship flight) - the so-called "group data table". It's a Lua table, nothing more. This may take some work and reading if you have never done it before, but you only need to do it once. Then use coalition.addGroup to convert the data table into a sim-world group. at this point, the unit spawns. You can use the same table with addGroup every time you wish to (re-)spawn a new flight, as a new group is spawned every time (if you leave out the information in your group table that is). If you, for example, created a timer and called addGroup every 2 minutes, a new flight would be created from the table every two minutes. Edited April 26, 2021 by cfrag Link to comment Share on other sites More sharing options...
SGT Coyle Posted April 26, 2021 Author Share Posted April 26, 2021 OK i'll give that a look. Thanks 1 Night Ops in the Harrier IYAOYAS Link to comment Share on other sites More sharing options...
Recommended Posts