Jump to content

How to set AI loop waypoints?


uboats

Recommended Posts

In LOFC2, the map editor has start loop and end loop options.

But in DCS map editor, they are gone. And the tutorial tells nothing about it.

 

Does anyone know how to do it?

[sIGPIC][/sIGPIC]

My DCS Mods, Skins, Utilities and Scripts

 

| Windows 10 | i7-4790K | GTX 980Ti Hybrid | 32GB RAM | 3TB SSD |

| TM Warthog Stick | CH Pro Throttle + Pro Pedal | TIR5 Pro | TM MFD Cougar | Gun Camera: PrtScn |

Link to comment
Share on other sites

Two ways.

 

1. Set Orbit waypoint task action. You will have two orbit types, one is a circle, the other is racetrack.

 

2. Using switch waypoint task. If you want an aircraft to orbit around a flight plan of 2 or more waypoints you can simply use the waypoint action "Switch waypoints" to send the flight back to the first waypoint of the orbit.

The right man in the wrong place makes all the difference in the world.

Current Projects:  Grayflag ServerScripting Wiki

Useful Links: Mission Scripting Tools MIST-(GitHub) MIST-(Thread)

 SLMOD, Wiki wishlist, Mission Editing Wiki!, Mission Building Forum

Link to comment
Share on other sites

Two ways.

 

1. Set Orbit waypoint task action. You will have two orbit types, one is a circle, the other is racetrack.

 

2. Using switch waypoint task. If you want an aircraft to orbit around a flight plan of 2 or more waypoints you can simply use the waypoint action "Switch waypoints" to send the flight back to the first waypoint of the orbit.

 

Could you tell me how to do 2nd one? I just entered DCS and can not find switch wp task

[sIGPIC][/sIGPIC]

My DCS Mods, Skins, Utilities and Scripts

 

| Windows 10 | i7-4790K | GTX 980Ti Hybrid | 32GB RAM | 3TB SSD |

| TM Warthog Stick | CH Pro Throttle + Pro Pedal | TIR5 Pro | TM MFD Cougar | Gun Camera: PrtScn |

Link to comment
Share on other sites

Under advanced waypoint actions. Add a task, and then pick the category "Perform Command" then choose "switch waypoint". Set whichever waypoint you want the AI to go back to, whenever they reach teh waypoint with the command, they will go back to the WP specified.

The right man in the wrong place makes all the difference in the world.

Current Projects:  Grayflag ServerScripting Wiki

Useful Links: Mission Scripting Tools MIST-(GitHub) MIST-(Thread)

 SLMOD, Wiki wishlist, Mission Editing Wiki!, Mission Building Forum

Link to comment
Share on other sites

Under advanced waypoint actions. Add a task, and then pick the category "Perform Command" then choose "switch waypoint". Set whichever waypoint you want the AI to go back to, whenever they reach teh waypoint with the command, they will go back to the WP specified.

 

Thank you very much

[sIGPIC][/sIGPIC]

My DCS Mods, Skins, Utilities and Scripts

 

| Windows 10 | i7-4790K | GTX 980Ti Hybrid | 32GB RAM | 3TB SSD |

| TM Warthog Stick | CH Pro Throttle + Pro Pedal | TIR5 Pro | TM MFD Cougar | Gun Camera: PrtScn |

Link to comment
Share on other sites

  • 1 month later...

 

Its fully part of Mist 3.2 now and fully functional. The script I posted in that thread wasn't 100% complete and has some oddities to it.

http://forums.eagle.ru/showpost.php?p=1885136&postcount=324

The right man in the wrong place makes all the difference in the world.

Current Projects:  Grayflag ServerScripting Wiki

Useful Links: Mission Scripting Tools MIST-(GitHub) MIST-(Thread)

 SLMOD, Wiki wishlist, Mission Editing Wiki!, Mission Building Forum

Link to comment
Share on other sites

mist.ground.patrol (

table/string

groupTable/groupName, , string patrolType, string



formation, number speed)

 

Which becomes this:

 

mist.ground.patrol('myGroup', nil, 'diamond', 10)

 

As per the 3.2 guide... since I'm currently working with the same function... I believe the patrol type you want is doubleBack (as opposed to nil)... and as you may already know the variables 'diamond' and 10 can be changed to suit your purposes. If you go to the scripting engine wiki you can see the proper entries for the different formations available.




Edited by ENO

"ENO"

Type in anger and you will make the greatest post you will ever regret.

 

"Sweetest's" Military Aviation Art

Link to comment
Share on other sites

  • 2 weeks later...

The function is named mist.ground.patrol :)

 

I wanted to keep commands for the different group types like that separate because each group type is slightly unique. Fixed wing aircraft and helicopters are similar, but they have different speed and altitude requirements. Ships and ground vehicles are similar, but they have different formation types and check different valid terrain types. I'll add the command for ships sooner or later.

The right man in the wrong place makes all the difference in the world.

Current Projects:  Grayflag ServerScripting Wiki

Useful Links: Mission Scripting Tools MIST-(GitHub) MIST-(Thread)

 SLMOD, Wiki wishlist, Mission Editing Wiki!, Mission Building Forum

Link to comment
Share on other sites

  • 4 years later...
  • Recently Browsing   0 members

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