Jump to content

Recommended Posts

Posted (edited)

Hi DCS Lua Gurrus,

 

I am a little bit puzelled by the waypoints...

I can't find any DCS function to get waypoints from a flight although I am sure I read somewhere how to get them but I can't find it anymore... Can you please point me to the right direction.

 

And then can you please confirm that it is possible to delete some waypoints of a IA flight plan. For exemple let's say that the ME flight plan consists of WPT 1 to 10 and when mission start I would like to delete WPT 2,4,6 so that the flight would travel WPT 1->3->5->7->8->9 and 10.

 

Thanks

Edited by CougarFFW04
Posted

Nope on both questions. Well not directly.

 

You can iterate the mission table that is saved in the .miz file to find route information. However it only works for routes created in the editor. Any route assigned to dynamically spawned groups would have to be saved when you create the group for reference later.

 

You can assign a new route with the waypoints deleted or you can manually issue Switch Waypoint commands so that AI skips the waypoints you want them to.

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

Posted (edited)

Hi Grimes,

 

Nope on both questions. Well not directly.

Too bad this isn't a ME scripting function. I think it could be very usefull...

Is it something we ca request to DCS and if yes how ?

 

 

You can iterate the mission table that is saved in the .miz file to find route information. However it only works for routes created in the editor. Any route assigned to dynamically spawned groups would have to be saved when you create the group for reference later.

This might be a possibility but not something I would consider right now if I can find a workaround...

 

you can manually issue Switch Waypoint commands so that AI skips the waypoints you want them to.

What I was doing in fact and it works pretty well as I want for anything BUT the "enaging target" enroute task... Let me explain : my idea is to set a flight plan with pairs of waypoints (let-say 2-3,..., i,i+1,...last) with a "engage target" enroute task setted at WPT i and a stopping condition at WPT i+1. When the flight reach WPT 1 I switch it at random to WPT i where they would orbit and engage any ennemy in area i before switching to "last" WPT and RTB after some time. The problem is that the "last waypoint" stopping condition is either bugged or does not work as I am thinking (see this https://forums.eagle.ru/showthread.php?t=226067) and it seems that there is a kind of "Eye of God" that tell them that ennemi are closing to the flight path wherever they are... I was thinking that the purple area in the picture of the "search and engage" DCS manual task section was "painted" as the flight is moving along the path but it seems to be "painted" all the way wherever the flight is (Eye of God). reason of this : https://forums.eagle.ru/showthread.php?t=226069

 

Your opinion is welcome.

 

Thanks in advance :smilewink:

 

Edit: Although the "last waypoint" and "Eye of God" are still open issue for me, do not worry as I was able to achieve more or less what I was looking for by using the "engage in area" instead of "engage target".

Edited by CougarFFW04
  • Recently Browsing   0 members

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