Larkis Posted August 18, 2019 Posted August 18, 2019 Hello everybody, On my Map i have a trigger which spawn a flight of Mig29 to fight and an area with ground vehicles. Now i want to use the mission for a permanent server for training so the task must reset themself. I tried to make ground units invulnerable but its not satisfying bombing them without a kill. I made a trigger that respawn the MiG29 but it end up in chaos cause at some point the players goes winchester but there still are ne full armed MiGs which chase down the pilots on there way back. So both ways dont work. Is there a way to reset a triggerzone and units when pilots left the trigger area? On some servers i saw that tasks could be spawn over the F10 communication. How does that work? Greetings Larkis
Sandman1330 Posted August 19, 2019 Posted August 19, 2019 I’ve got something similar set up to spawn different tasks from the F10 menu. For air to air, there are several of them to spawn, but in all cases once you run out, you run out. To solve this I’ve got the option to restart the mission in the F10 menu as well. Just use “run mission” and select the mission file, and it works nicely. This is my mission file, feel free to reverse engineer it: https://forums.eagle.ru/attachment.php?attachmentid=215710&d=1566089374 Ryzen 7 5800X3D / Asus Crosshair VI Hero X370 / Corsair H110i / Sapphire Nitro+ 6800XT / 32Gb G.Skill TridentZ 3200 / Samsung 980 Pro M.2 / Virpil Warbrd base + VFX and TM grips / Virpil CM3 Throttle / Saitek Pro Combat pedals / Reverb G2
feefifofum Posted August 19, 2019 Posted August 19, 2019 No short answers here, I'm afraid. You'll have to learn some very basic code to respawn groups. Look up mist.flagfunc.unitsinzone() and/or trigger.action.setuserflag() to get an easy way to toggle a flag when units enter/exit the trigger zone. You could also brute force it with switched conditions checking for any player aircraft in/all player aircraft out of the zone. To respawn groups, you must use third party scripting expansions; MiST or MOOSE can both get the job done. Look up mist.respawnGroup() and the MOOSE SPAWN class to see what your options are. Good luck! THE GEORGIAN WAR - OFFICIAL F-15C DLC
Recommended Posts