TheTrooper Posted February 7, 2020 Posted February 7, 2020 Hi All, is there a way you can respawn a dead AI unit? A bit like if a late activated air unit takes off from runway, then has been killed but a trigger has been activated can you repawn it to take off the runway again? ----------------------------------------------- Intel® Core™i7 Quad Core Processor i7-6700 (3.4GHz) 8MB Cache | 32GB HyperX FURY DDR4 2133MHz | MSI GeForce RTX 2070 ARMOR 8G |SSD 1TB 970 EVO Plus M.2
ChuckIV Posted February 8, 2020 Posted February 8, 2020 Perfect for MOOSE or MIST This is exactly what MOOSE or MIST scripting is for. I'm slowly learning how to use MOOSE lua coding. Definite learning curve, but what you are asking is done soooooo easily using lua code. ChuckIV "Never in the field of human conflict was so much owed by so many to so few." Winston Churchill SYSTEM: Processor - Intel® Core i9-9900KF CPU @ 3.60GHz 3600MHz water-cooled Installed memory (RAM) - 32.0 GB 64-bit Operating System, x64-based processor Windows 10 & DCS on SSD Video Card - water-cooled NVIDIA GeForce RTX 2080 Ti Internet: Cable 200Mbps 12Mbps
TheTrooper Posted February 8, 2020 Author Posted February 8, 2020 This is exactly what MOOSE or MIST scripting is for. I'm slowly learning how to use MOOSE lua coding. Definite learning curve, but what you are asking is done soooooo easily using lua code. ChuckIV I found a script but don't know why it wasn't working. It threw up errors. I guess more to it than what I know. ----------------------------------------------- Intel® Core™i7 Quad Core Processor i7-6700 (3.4GHz) 8MB Cache | 32GB HyperX FURY DDR4 2133MHz | MSI GeForce RTX 2070 ARMOR 8G |SSD 1TB 970 EVO Plus M.2
feefifofum Posted February 9, 2020 Posted February 9, 2020 How many times, realistically, do you need this to happen? If it doesn't need to be infinite times on a 24/7 server you can simply copy and paste multiple versions of the same AC or group of AC to your airbase, check late activation, then use a series of GROUP DEAD -> GROUP ACTIVATE triggers to launch each subsequent aircraft/group. If it really has to be infinite times forever then you are firmly in .lua land but it's a relatively simple task in both MiST and MOOSE. Post your .miz and someone will take a look. THE GEORGIAN WAR - OFFICIAL F-15C DLC
ChuckIV Posted February 11, 2020 Posted February 11, 2020 In MOOSE lua scripting, you would place a group on the runway LATE ACTIVATED and use this code... Here you would have a Bf109 group of 4 spawn on the runway, get shot down and respawn back at the airport. Note the (4,5) in the InitLimit... this means a group of 4 can only exist at one time and this group can be respawned 5 times. Setting the 5 to zero would make it an infinite set of respawn groups... local Bf109_GP1_JG52 = SPAWN:New( "Bf109 GP1 JG52" ):InitLimit(4,5):InitRepeatOnEngineShutDown() do Bf109_GP1_JG52:Spawn() end I know learning lua code can be daunting. I'm still a major nube at it, but there are super helpful guys online here like Hard Card and Pikey and many others that help you out. "Never in the field of human conflict was so much owed by so many to so few." Winston Churchill SYSTEM: Processor - Intel® Core i9-9900KF CPU @ 3.60GHz 3600MHz water-cooled Installed memory (RAM) - 32.0 GB 64-bit Operating System, x64-based processor Windows 10 & DCS on SSD Video Card - water-cooled NVIDIA GeForce RTX 2080 Ti Internet: Cable 200Mbps 12Mbps
Recommended Posts