View Single Post
  #3  
Old 03-07-2012, 07:06 AM
salmo salmo is offline
Approved Member
 
Join Date: Mar 2011
Posts: 632
Default

Thanks Kodiak. I altered the script (below x 2) to eliminate if/break issues. Still doesn't work though It's as though the GamePlay.gpAirGroups(army) call is not returning any valid aircraft?

Code:
        private void sayMessageTo(int army, string msg)
    {   // send a speech message to all players in specified army (1=red; 2=blue)
        foreach (AiAircraft a in GamePlay.gpAirGroups(army))
        {
            a.SayToGroup(a.AirGroup(), "Nice_shot");  // for testing

        }
    }
Code:
        private void sayMessageTo(int army, string msg)
    {   // send a speech message to all players in specified army (1=red; 2=blue)
        sendScreenMessageTo(1, "saymessage", null);  // testing
        foreach (AiAircraft a in GamePlay.gpAirGroups(1))
        {
            a.SayToGroup(a.AirGroup(), "Nice_shot");

        }
        foreach (AiAircraft a in GamePlay.gpAirGroups(2))
        {
            a.SayToGroup(a.AirGroup(), "Nice_shot");

        }
    }
__________________
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

Last edited by salmo; 03-07-2012 at 07:14 AM.
Reply With Quote