Quote:
Originally Posted by Ataros
We use similar actor destroy code on Repka. It used to have an issue of stopping bomber engines when a player switches to a gunner or navigator position. Did you manage to solve this issue?
|
I was not aware of that issue. My code probably exhibits the same behavior. That code actually answers your second question. It goes through all the aircraft in a group and destroys them.
As for the list and array business, I only want to send the message to blue players, so I need to create an array that contains only the players on blue team. The problem is that I don't know how many blue players there are beforehand and when you create an array you can't resize it. That's where the list comes in. The list
can be dynamically resized. When I'm ready to send the message, I can use the ToArray() method of the list to get an array that contains only the blue players.