
Well it is SNAFU's- Changes I made:
1. Loaded a mission OnBattleStart Section then rotated each mission every 40 minutes by adding an on tick timer onto each mission script.
2. Have not figured out how to get the message to army tho. I will post it here: Not sure I placed it right.
3. Last added aaa mission to load all the triple aaa sites during the war so that it loads prior to any missions was going to have them re-spawn in 2 hours if destroyed.
This what you had me working on so that my messages went to the correct army:
public override void OnTickGame()
{
if (Time.tickCounter() % 864000 == 72000) // 864000 = 8 hour repeat, 72000 = 40 min delay.
{
GamePlay.gpPostMissionLoad("missions/Multi/Dogfight/July1940_v10/Missionen/Mission5.mis");
}
/////////////////////////////////////////////Player Hub and Log Info
if (Time.tickCounter() % 300 == 0) // every 10 sec.
{
List<Player> players = new List<Player>();
if (GamePlay.gpPlayer() != null)
players.Add(GamePlay.gpPlayer());
if (GamePlay.gpRemotePlayers() != null)
players.AddRange(GamePlay.gpRemotePlayers());
Player[] Reds = players.FindAll(item => item.Army() == 1).ToArray();
Player[] Blues = players.FindAll(item => item.Army() == 2).ToArray();
if (Reds.Length > 0)
{
GamePlay.gpHUDLogCenter(Reds, "Cover our shipping south of Dover (AV22).", new object[] { });
GamePlay.gpLogServer(Reds, "Cover our shipping south of Dover (AV22).", new object[] { });
}
if (Blues.Length > 0)
{
GamePlay.gpHUDLogCenter(Blues, "LW Bombers leave Calais to raid shipping at appr. 4000m! Fly a fighter sweep over AV22!", new object[] { });
GamePlay.gpLogServer(Blues, "LW Bombers leave Calais to raid shipping at appr. 4000m! Fly a fighter sweep over AV22!", new object[] { });
}
}
So does this look right and thanks again for the help and yes I am really trying to learn this stuff.
It is the one our squad server (71st_AH_Server) enjoys and things are working ok! Me not being a C what ever

. I sure am enjoying your help.
King