Fulqrum Publishing Home   |   Register   |   Today Posts   |   Members   |   UserCP   |   Calendar   |   Search   |   FAQ

Go Back   Official Fulqrum Publishing forum > Fulqrum Publishing > IL-2 Sturmovik: Cliffs of Dover > FMB, Mission & Campaign builder Discussions

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 03-07-2012, 06:26 AM
salmo salmo is offline
Approved Member
 
Join Date: Mar 2011
Posts: 632
Default sayMessageTo script help

Trying to send radio voice (saygroup) messages to each person in a given army. Code has no compile errors but doesn't voice to players? Any help appreciated.

Code:
    private void sayMessageTo(int army, string msg)
    {   // send a speech message to all players in specified army (1=red; 2=blue)
        foreach (AiAirGroup g in GamePlay.gpAirGroups(army))
        {
            bool SaidToGroup = false;
            foreach (AiAircraft a in g.candidates())
            {
                if (SaidToGroup == true) return; // speech already said to group
                SaidToGroup = true;
                a.SayToGroup(a.AirGroup(), "Received_and_understood_Villa_Leader");  // for testing only
                //a.SayToGroup(a.AirGroup(), msg);
            }
        }
    }
__________________
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 06:28 AM.
Reply With Quote
 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 03:15 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright © 2007 Fulqrum Publishing. All rights reserved.