Hi,
I am looking to have a message sent every few minutes that will send a message saying if the Objective is complete or not.
Currently if the 3 Bool Triggers are activated as a group then the objective is complete.
Is there a way in Ticktime to check that these are active or not and send a message to the Hud that the Objective is "Complete" or "Not Complete"
Code:
bool BGTarget2 = false; //German Bomber group 1 of 6
bool BGTarget2_1 = false; //German Bomber group 2 of 6
bool BGTarget2_2 = false; //German Bomber group 3 of 6
Code:
/*-----------Show scores about every 10 minutes----------*/
public override void OnTickGame()
{
if (Time.tickCounter() % 18 == 17)
{
GamePlay.gpLogServer(null, "Team scores - RAF {0}: LW {1}", new object[] { ScoreRed,ScoreBlue });
base.OnTrigger(missionNumber, shortName, active);
if (("BGTarget2".Equals(shortName) && active) && ("BGTarget2_1".Equals(shortName) && active) && ("BGTarget2_2".Equals(shortName) && active))
//if ((BGTarget2 && BGTarget2_1 && BGTarget2_2) = true);
Timeout(10, () =>
{
GamePlay.gpHUDLogCenter("Red Objective 11 Completed!!!");
}
}