PDA

View Full Version : Rearange airport landing que?


salmo
10-27-2012, 03:31 AM
I'm attempting to rearange an airfield's landing que. The QueueLanding method is read-only and returns an AiActor array. Is there a way to assign a new actor array to an airfield landing que?


foreach (AiAirport airport in GamePlay.gpAirports())
{
List<AiActor> NewQueLanding = new List<AiActor>();
// add a new list of actors to NewQueLanding
airport.QueueLanding() = NewQueLanding; // fails cannot assign value to a method
}