Jump to content

Recommended Posts

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.

Flying the Harrier

IYAOYAS



Link to post
Share on other sites

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 post
Share on other sites
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.

 

Flying the Harrier

IYAOYAS



Link to post
Share on other sites
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 by StevanJ
Link to post
Share on other sites

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 by cfrag
Link to post
Share on other sites
  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...