CommandT Posted March 1, 2021 Posted March 1, 2021 Hi folks, Can't find a decent video on youtube. Can someone suggest? I just need make zone to spawn random enemy units for ground attack (so I don't know where they are exactly apart from the general area where they spawn) and similarly, how do I make any number of possible enemy flights spawn? Is there an easy-ish way of doing this without going into millions of details about timings, locations, setting probabilities and so on. I just need a simple - set the zone, set what units can spawn there, done... that's what i need. Is that possible? Cheers! 1
dark_wood Posted March 2, 2021 Posted March 2, 2021 If you don't want to use scripting, you can try (example for one zone): Set groups on map, inside your zone, with Late Activation checked. Add triggers: MISSION STARTUP > no condition > flag 1 set random value (from 1 to x, x = number of groups in that zone) ONCE > flag 1 is true > Message to All "destroy ground units in zone 1" (info to know where the units will be spawned) ONCE > flag 1 equals 1 > group activate groupNo_1 ONCE > flag 1 equals 2 > group activate groupNo_2 ... ONCE > flag 1 equals x > group activate groupNo_x Copy/Repeat flags/triggers for the rest of the zones 1
EasyEB Posted March 6, 2021 Posted March 6, 2021 This same question has been asked multiple times, by me aswell. In my case it led to https://www.digitalcombatsimulator.com/en/files/3314238/ lol Check out Moose, in particular the Spawn class.
CommandT Posted March 22, 2021 Author Posted March 22, 2021 On 3/1/2021 at 11:08 PM, CommandT said: Hi folks, Can't find a decent video on youtube. Can someone suggest? I just need make zone to spawn random enemy units for ground attack (so I don't know where they are exactly apart from the general area where they spawn) and similarly, how do I make any number of possible enemy flights spawn? Is there an easy-ish way of doing this without going into millions of details about timings, locations, setting probabilities and so on. I just need a simple - set the zone, set what units can spawn there, done... that's what i need. Is that possible? Cheers! Thank you for this, and sorry about not saying thank you a long time ago. I only just got round to trying to set this up. Am I right in saying, doing it this way means that for every time you fly the mission only one of the groups will activate? How do I make it so that any random amount of groups activate? For example - I have 28 groups. What if I want anywhere from 10 to 20 of those groups to randomly activate?
Recommended Posts