PDA

View Full Version : how to spawn airgroups after another one is destroyed?


David198502
10-14-2011, 03:55 PM
the title says it all.i want to build a simple mission where an enemy airgroup should spawn after another one gets destroyed?i think i would need step by step instructions as another thread with the same question didnt help me...

adonys
10-14-2011, 06:15 PM
chek on OnActorDestroyed function if the aircraft is part of that flight group, and if yes, subtract it from the total number of actors of that group.

when it reaches 0, it means there are no more actors from that group..

David198502
10-15-2011, 08:52 AM
thx adonys but i just dont understand that...i think im just too stupid to ever be able to spawn planes in that game....why cant it be as simple as in 1946???

David198502
10-15-2011, 10:49 AM
anybody else, who may be able to explain me what and how to do???
maybe someone is so kind to upload a mission which does spawn a group of planes after another one gets destroyed??????

David198502
10-15-2011, 11:12 AM
thats what i did so far...

adonys
10-15-2011, 12:12 PM
Here's a training mission which spawns three waves of enemies for you, as soon as the previous one was destroyed.

I've forgot from where I've got it, but it must be from somewhere around here.

And btw, spawning an airgroup in IL2CoD is as easiest as in IL21946u using the FMB. What you want to do is something different, which needs scripting. I'm not sure if 1946b had a FMB automatic way to do it.

Also, do yourself a favor and get some Beginner C# learning book. It's not so complicated actually, specially when it comes about just learning to do basic things in CoD's scripts.