Hereje Posted July 27, 2014 Posted July 27, 2014 hi, again, i continue my investigation about how factible my idea is. i Want to spawn new pre-scripted missions randomly when some other mission completes in a multiplayer enviroment, all humans. Is it possible from the scripting(and maybe other scripting addons like Mist etc) to allow the server´s host to spawn missions on the client trough some message or something?? very simple question that can close and finish my Idea of a real multiplayer mission :-(
FSFIan Posted July 27, 2014 Posted July 27, 2014 Is it possible from the scripting(and maybe other scripting addons like Mist etc) to allow the server´s host to spawn missions on the client trough some message or something?? What do you mean by "spawning a mission on the client"? Do you want the client to switch to a single-player mission? I doubt that is possible. If you just want the server to switch to a different mission take a look at SlMod. DCS-BIOS | How to export CMSP, RWR, etc. through MonitorSetup.lua
Hereje Posted July 27, 2014 Author Posted July 27, 2014 This is the Idea: the Miz start with 2 or 3 Missions, once one of them completes, another one (pre-scripted) have to spawn. so the server have to know when a mission ends and then spawn anothe mission so the player have another mission to complete. Looking to SlMod :D
xcom Posted July 27, 2014 Posted July 27, 2014 You can simply do this with triggers and late activation. [sIGPIC][/sIGPIC] BuddySpike Website | Live Map & Statistics BuddySpike Twitch Channel Buddyspike Discord Buddyspike Facebook
Hereje Posted July 27, 2014 Author Posted July 27, 2014 yeah, i saw SlMod and the function i need is called add_task so i have hope in this. i will investigate more and see what can i do with this. Thank you !
Grimes Posted July 28, 2014 Posted July 28, 2014 There are a couple of different ways you can do it. Probably one of the easier or better ways to do it is to take a look at Graywo1f's Separatist Aggression missions. http://forums.eagle.ru/showthread.php?t=84353 He has side missions running that as they complete the triggers assign a new mission randomly. Each task has a couple of triggers associated with it. One to start it, another to display update messages, and one for objective completion. You can do it other ways with triggers, scripting, and to an extent slmod. The slmod functions are more of an augmentation to triggers and were created before multiplayer clients could use the F10 Other radio menu for radio selections. 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
Hereje Posted July 28, 2014 Author Posted July 28, 2014 Thanks Grimes! i am looking those mission and doing inverse engineering to how to do it. Thank you!
LFCChameleon_Silk Posted July 29, 2014 Posted July 29, 2014 Hereje take a look at the guts of Operation Perched Eagle, if randomized tasks to complete are what your looking for thats the whole premise of the mission. http://forums.eagle.ru/showthread.php?t=123615 I built the whole tasking script from scratch, although it does lack a bit of "story" to the whole thing it gives you stuff to kill in randomized locations (with a dynamic bullseye call to find them) you can always modify the F10 map option to show where things are spawning if your not familar with bullseye calls. or you can move the zones around and create your own mission in a different locale if you want. anyways might be a bit overboard but something interesting for you to try out, might save you some work.
Recommended Posts