miromurin Posted April 4, 2020 Posted April 4, 2020 Is possible to define random spawn time of AI planes let's say between 5 and 25 minutes in mission editor?
ChuckIV Posted April 4, 2020 Posted April 4, 2020 Use a flag 1 and flag 2 as a timer (counter) Set flag 1 to zero at mission start. Set flag 2 to a random value between the minimum and maximum number of seconds you want the spawn to happen. Add 1 to flag 1 every second, and when flag 1 hits the same value of flag 2 (i.e. flag 1 equals flag 2), then start the spawn. Also, you can reset flag 1 to zero and flag 2 to another random number of seconds again as this spawn occurs - if you want to spawn another repeatedly. Hope this idea helps. 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
Recommended Posts