CougarFFW04 Posted February 18, 2020 Share Posted February 18, 2020 Hi everyone, I have a very simple question concerning AI ground vehicles dispersion. I have a artillery bataillon moving on a road to it's destination. I would like that they disperse randomly within a small region as soon as they reach destination. Is it possible and wow to do that with a script ? I would like to mention that the "Disperse under attack" is not what I am looking for as they are NOT under attack. I tried to simulated a small explosion nearby them to force them to disperse but they stay on the road... Any idea ? Thanks Link to comment Share on other sites More sharing options...
Vanguard Posted February 18, 2020 Share Posted February 18, 2020 You can create a template of how you want them to disperse, and then use the "Group Stop and Deploy to Template". The first unit will maintain it's position while the rest of the units will position based on the template. See pg. 92 of the manual, or: https://wiki.hoggitworld.com/view/DCS_editor_actions#Group Link to comment Share on other sites More sharing options...
CougarFFW04 Posted February 18, 2020 Author Share Posted February 18, 2020 (edited) Hi, You can create a template of how you want them to disperse, and then use the "Group Stop and Deploy to Template". The first unit will maintain it's position while the rest of the units will position based on the template. See pg. 92 of the manual, or: https://wiki.hoggitworld.com/view/DCS_editor_actions#Group Thanks. Sounds it is what I was looking for... Nevertheless I have a problem... How to use it ? Don't get me wrong I amm familiar with DSC Lua scripting but from the page you linked I do not see haw to use this and I cant find it from https://wiki.hoggitworld.com/view/Category:Functions is it a setOption, setCommand or whatever ? Thanks Edit: I think this does not exist for script.... Edited February 18, 2020 by CougarFFW04 Link to comment Share on other sites More sharing options...
Vanguard Posted February 18, 2020 Share Posted February 18, 2020 Hey Mate, Sorry, it's slightly more complicated, but I just set one up. The action STOP AND DEPLOY TO TEMPLATE is only available as a trigger action. 1. Create your group and position them as you want them to disperse. 2. Create a template of that group 3. Give your group a route 4. Place a trigger zone at the last waypoint 5. Create a trigger: type = Once Conditions = Part of Group in Zone (Your group, your trigger zone) Action = STOP AND DEPLOY TO TEMPLATE (your group, your template) See pics: Just tested it and working. Attached miz file.Disperse.miz Link to comment Share on other sites More sharing options...
CougarFFW04 Posted February 18, 2020 Author Share Posted February 18, 2020 Hi Vanguard, Thanks for coming back to me, However, I am interested by the scripted version of this action and it sounds that it is NOT available. someone will confirm. Thanks anyway Link to comment Share on other sites More sharing options...
Vanguard Posted February 18, 2020 Share Posted February 18, 2020 Sorry, forgot you called out script in the OP. I looked about, I think the answer is no. Could you possibly do a combination? Use ME to set a trigger, condition: FLAG X = TRUE, create the template (or maybe a few of them for the "random factor", each with its own flag), action deploy to template and flag = false, and then in your script all you have to do is set the userflag and the deploy to template function will kick off. Link to comment Share on other sites More sharing options...
CougarFFW04 Posted February 18, 2020 Author Share Posted February 18, 2020 Hi Vanguard. Unfortunatly for many reasons it's Not possible to mix things. Thanks anyway. You did your best to help and this is the most important. Best regards. Link to comment Share on other sites More sharing options...
Miles Vorkosigan Posted February 19, 2020 Share Posted February 19, 2020 Thanks Vanguard, this is exactly what I was looking for. Link to comment Share on other sites More sharing options...
Recommended Posts