![]() |
#1
|
|||
|
|||
![]()
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!!!"); } }
__________________
__________________ Win7, 64bit Ultra Asus P8P67Pro MB Intel i7-2600K Coursair 16GB (4x 4GB), DDR3-1600MHz Gainward Nvidia 580GTX 3GB DDR5 850-Watt Modular Power Supply WIN7 and COD on Gskill SSD 240GB 40" Panasonic LCD TrackIR5 + Thrustmaster Warthog stick, throttle & pedals |
Thread Tools | |
Display Modes | |
|
|