Jump to content

Recommended Posts

Posted

I'm trying to spawn a 1 random group out of 6 different groups on command via f10 radio. I usually use set random flag value flag 1 value 1,6 however i would like to know how to do it with only lua. Maybe use mist to put these groups into a table and then use that table to spawn them at random 1 or maybe 2 at a time. does anyone have any examples? I keep getting errors and there seems to be no hope in sight

Posted (edited)

Here's a miz file where I managed to get some random spawns. If you download the mission go to the f10 menu and press "BVR" or "WVR". This will spawn a random amount of bandits. afterwards you can reset the bandit by going into the f10 menu and pressing "RESET". this will spawn a new set of bandits. if you want to completely get rid of the bandits go to the f10 menu and press "BVR OFF" or "WVR OFF" and then go back to the f10 menu and press "RESET". I also added a dynamic ground unit spawning system. one for basic ground units with some sams mixed in and one specifically for sam sites. these ground unit spawns will trigger automatically at mission start and once every hour

 

Like i said previously i would like to figure out how to use lua to do these tasks instead of the mission editor. I've been struggling to learn and If there are any pointers you could give me to get me moving in the right direction that would be great! I"m still trying to learn how to add radio commands so im going to try and focus on that first. thank you and hopefully someone else can learn from this as well in the future

Nevada dynamic AA.miz

Edited by Zachc12385
  • Recently Browsing   0 members

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