ADHS Posted June 23, 2020 Share Posted June 23, 2020 (edited) Hello. I've setup 4 different groups with LATE ACTIVATION. Every group, have been placed in different starting point location with NO FURTHER WAYPOINTS, besides their 1st one (birth waypoint numbered as 0). A 5th GROUP with just 1 UNIT, have been set to follow a route of 10 waypoints. Is it possible to pass all the waypoints of the 5th group to the rest 4, so no matter their starting location, to start following the 10 waypoints route of the 5th ? Meaning, if GROUPS can SHARE or EXCHANGE waypoints between them. Thank you. Edited June 23, 2020 by ADHS Democracy was already invented, while Scrat was eating oak fruits. Link to comment Share on other sites More sharing options...
reptile92 Posted June 23, 2020 Share Posted June 23, 2020 if the groups are AI, then yes, through script, using Moose. With AI, you can setup a route from a template. Let me know if you need help, i’ll copy paste some code i’ve got. Link to comment Share on other sites More sharing options...
ADHS Posted June 23, 2020 Author Share Posted June 23, 2020 (edited) reptile92 Thank you for your reply my friend. Yes, the groups are AI that i want them to "pop-up" in front of CLIENTS. Please, do paste code as (i've just started with script and) i am still balancing between MIST and MOOSE. It will help me to understand: 1. That this can be done 2. And how this can be done Thank you, again :thumbup: PS: Please (if it is possible) be brief, not just headlines as i want to understand how things works. Not looking for a "ready solution". In fact, if i understand how to transfer "properties" from one group to another, it will open a wide horizon ahead to all of the other classes and tables that DCS is using "on-the-fly". Edited June 23, 2020 by ADHS Democracy was already invented, while Scrat was eating oak fruits. Link to comment Share on other sites More sharing options...
reptile92 Posted June 23, 2020 Share Posted June 23, 2020 Here an example I use for player to ask a spoecific tanker route. I got a Group, named "AAR Circuit", with a route setup. the group is "late activated". this is the template. Not used in game, just used to create the route with waypoint (and waypoint task, enroute task, etc...) Then I search for the "real" IA group I want to modify the route, named "Texaco" , and setup the route here is the code TemplateRoute = GROUP:FindByName( "AAR Circuit") -- Retrieve the wrapper.Group object, used as template GROUP:FindByName( "Texaco" ):Route(TemplateRoute:GetTaskRoute()) --Copy the route to the IA group called Texaco To use this code, you need to load moose file. You can find more details here, go directly to 6.2) Create your first Mission file If you need more detail, don't hesitate, I'll explain more. As you can see, the guys from Moose have done a great job, and a complex thing as copying route turn to be quite simple. Unfortunatly we can dop this on Player/client object :( Link to comment Share on other sites More sharing options...
reptile92 Posted June 23, 2020 Share Posted June 23, 2020 I’ll add that moose doc+sample mission are a good reference to understand how things work Link to comment Share on other sites More sharing options...
ADHS Posted June 24, 2020 Author Share Posted June 24, 2020 (edited) I’ll add that moose doc+sample mission are a good reference to understand how things work Thank you for the explanation my friend. I got the point and the logic.:thumbup: Sure Moose has been ahead. Sadly couldn't find details in Mist documendation If i become familiar with classes, i am sure there will be a way for Client side as they are using the same Group principles. In time :)..... Welcome to upload the example as it will be useful for others readers also. Edited June 24, 2020 by ADHS Democracy was already invented, while Scrat was eating oak fruits. Link to comment Share on other sites More sharing options...
Recommended Posts