Page 1 of 1

Either/Or for unit spawns possible?

Posted: Sat Aug 13, 2022 10:08 pm
by MarkJoergensen
Hi there,

Is it possible to do make a scenario where a set of units either spawn in location X or spawns in location Y, with the same strike mission already attached to them? For instance, the squadron either spawns at an airfield near Kaliningrad or St. Petersburg, with a naval strike mission already assigned and ready to go?

Re: Either/Or for unit spawns possible?

Posted: Mon Aug 15, 2022 5:59 am
by Parel803
I'm no expert but you might find stuff in the Lua Legion part. Or get answers from smart Lua people.
regards GJ

Re: Either/Or for unit spawns possible?

Posted: Mon Aug 15, 2022 11:05 am
by thewood1
It is very doable. I would use an event, trigger, and action with a little lua. The lua would be needed to generate the random and make sure the aircraft are in one of the airfields. Then activate and deactivate the right missions. It might be easier to place duplicates of the aircraft in each field and then just activate or deactivate the missions. But its all possible.

You could do it all through lua, without the events. But that starts to get deep into lua coding. The event approach is a little more manageable for non-lua experts.

Re: Either/Or for unit spawns possible?

Posted: Mon Aug 15, 2022 1:48 pm
by MarkJoergensen
Sweet, thanks!