Jump to content

Recommended Posts

Posted

Oh, and a way around it is to set the mission calling itself with "Load mission" or select another mission with "Load mission". If you have 4 missions you can set up a random trigger to select between them by having them in triggers on all missions. A lot of work I know but still a workaround.

Posted

that's an awkward way to go about it, but it'll do for now.

 

 

I have a couple of generic training missions running, and I don't really care which of them.

 

 

so I have an empty mission that all the other missions load instead of "end mission".

 

 

this mission just sets a flag value at random, and 30 seconds after it's loaded it will load the selected mission.

 

 

would prefer "end mission" to be fixed.

  • ED Team
Posted

I've just added a new callback, so to automatically load next mission from the list, one needs to place a something like this into Saved Games/DCS/Scripts/Hooks/loadNextMission.lua:

local cb = {}
function cb.onNetMissionEnd()
   net.load_next_mission()
end
DCS.setUserCallbacks(cb)

Dmitry S. Baikov @ Eagle Dynamics

LockOn FC2 Soundtrack Remastered out NOW everywhere - https://band.link/LockOnFC2.

Posted
I've just added a new callback, so to automatically load next mission from the list, one needs to place a something like this into Saved Games/DCS/Scripts/Hooks/loadNextMission.lua:

local cb = {}
function cb.onNetMissionEnd()
   net.load_next_mission()
end
DCS.setUserCallbacks(cb)

 

If this works then perfect. Is it possible to read the current mission list and random select also?

  • ED Team
Posted
If this works then perfect. Is it possible to read the current mission list and random select also?

 

Will be out in the openbeta in May.

There's an API to work with the mission list, I will document it.

Dmitry S. Baikov @ Eagle Dynamics

LockOn FC2 Soundtrack Remastered out NOW everywhere - https://band.link/LockOnFC2.

  • 1 year later...
Posted

Any updates on this?

[sIGPIC][/sIGPIC]

AMP WIZARD "Forest Gumble" "When the air becomes electric....It's like a box of chocolates":captain:

Windows 11 Pro 64 bit | Intel Alder Lake i7 12700KF | Asus Prime Z690M Plus D4 | CORSAIR Vengeance LPX 64GB (2 x 32GB) DDR4 3200 | GeForce RTX 4070 Ti Ventus 3x qwG OC | 1x42" Multi Touch Screen and 1x27" 4k widescreen | WinWing Orion2 ViperAce(EX) Joystick, Orion2 NavyAce Throttle, Orion Flight Metal Rudder(w/damper) |

  • Recently Browsing   0 members

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