xplod Posted July 31, 2019 Posted July 31, 2019 Hi all. I am an experienced (C,C++) programmer, bur new to LUA and DCS scripting. I want to write some basic training missions for beginners, but I get stuck when it comes to routes and waypoints: Mission: At mission start, a (random) route should be created, and this route should be assigned to the flight lead and all wingmen (so that e.g. the NS430 can display the route) Is this possible within DCS? Or do I have to create multiple flight leads with late activation and activate one of them using a trigger? Is there a simple way to copy a flight route to different planes (I know that I could look inside the miz file and copy the route located in the mission file to every plane, but this sucks...)? I tried the MIST framework (mist.fixedWing.buildWP() and mist.goRoute()), but that didn't do anything. Perhaps someone has got a working example for this? Best regards, _X_ [sIGPIC][/sIGPIC] Currently used modules: - F16 Viper(primary) - F/A 18 Hornet , F-5E Tiger, L-39, C-101 for fun - (many more unused but great modules :-) )
Grimes Posted August 1, 2019 Posted August 1, 2019 You can't edit the route for a player aircraft. Those mist functions and really any other function like that is meant for AI usage to change their route. I'd have to test it out, but at least in single player it should be possible to spawn a new flight for the "player" that has a different route. What I mean is it will delete the old player aircraft group and create a new one. Its supposed to work but I haven't even tried it in ages. This would be done via: https://wiki.hoggitworld.com/view/DCS_func_addGroup The right man in the wrong place makes all the difference in the world. Current Projects: Grayflag Server, Scripting Wiki Useful Links: Mission Scripting Tools MIST-(GitHub) MIST-(Thread) SLMOD, Wiki wishlist, Mission Editing Wiki!, Mission Building Forum
okopanja Posted July 12, 2022 Posted July 12, 2022 Hi, I found out that it is possible to update the route for a player for FC3 at least. However: - it does not update cockpit interface until you cycle nav modes - it does not work at all on dedicated server (and clients) I am interested if you got any new findings meanwhile? See:
Recommended Posts