View Single Post
  #1  
Old 10-27-2012, 03:31 AM
salmo salmo is offline
Approved Member
 
Join Date: Mar 2011
Posts: 632
Default Rearange airport landing que?

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?

Code:
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
}
__________________
When one engine fails on a two engine bomber, you will always have enough power left to get to the scene of the crash.

Get the latest COD Team Fusion patch info HERE
Reply With Quote