diveplane Posted December 10, 2010 Posted December 10, 2010 i was intrested in making some basic ai traffic, taxi take off land , then respawns and loops again. not figured how to do this yet in editor, anyone know how? done vai triggers i take it?. https://www.youtube.com/user/diveplane11 DCS Audio Modding.
nomdeplume Posted December 12, 2010 Posted December 12, 2010 You won't be able to have the same unit loop, once landed that's the end of it. You'd need to set up multiple individual flights, and just use waypoints to have them run a loop, and then land. Use the "ETA" field on the first waypoint to delay their startup. For just providing continual traffic you can simply stagger the start times so they'll spawn some time apart from each other. Otherwise, you can set a start time far into the future (e.g. 1 day) and then use a trigger to activate the group when particular conditions are met (e.g. player aircraft is in the vicinity). It'll be pretty tedious work, but not difficult.
Grimes Posted December 12, 2010 Posted December 12, 2010 I guess it depends on how active you want it to be and how much time takes place between mission start and end. But two major ways... Spawn by time. or Spawn by triggers With spawn by time you just make all the AI you want and change their start delay. With spawn by triggers you can use a wide array of methods to spawn each group. You could use a time based method of checking "Time More x" to more easily change the timing. You can also check if aircraft are in zones or other variables to create a cascading trigger spawn new groups once another group is about to land. 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
diveplane Posted December 12, 2010 Author Posted December 12, 2010 really hoping they could add a looping pattern, whatever you did in the waypints it will, respawn start again follow them. https://www.youtube.com/user/diveplane11 DCS Audio Modding.
Grimes Posted December 12, 2010 Posted December 12, 2010 really hoping they could add a looping pattern, whatever you did in the waypints it will, respawn start again follow them. Doesn't work like that unfortunately. I wish it did. Essentially each group is its own object, it shares no data with anything else. So to make 50 groups take off and land you need 50 aircraft with probably at least a few waypoints each. You'd also need 50 triggers or a delayed start set appropriately for each group. 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