Jump to content

AI bataillon dispersion.


CougarFFW04

Recommended Posts

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

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 by CougarFFW04
Link to comment
Share on other sites

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:

 

 

U8QwK8V.jpg

wUoSPVw.jpg

YglBNcJ.jpg

 

 

 

Just tested it and working. Attached miz file.

Disperse.miz

Link to comment
Share on other sites

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

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...