![]() |
#3
|
|||
|
|||
![]()
using System;
using maddox.game; using maddox.game.world; using System.Collections.Generic; public class Mission : AMission { public override void OnTickGame() { if (Time.tickCounter() % 108000 == 18000) // 108000 = 60 min repeat. 18000 = 10 min delay. { GamePlay.gpPostMissionLoad("missions/channelv6/BM1/Practice.mis"); GamePlay.gpHUDLogCenter("The Battle of Britain is about to begin"); double initTime = 0.0; Timeout(initTime, () => { GamePlay.gpHUDLogCenter("Attention Airbases"); }); Timeout(initTime += 5, () => { GamePlay.gpHUDLogCenter("Intell German Bomber Raids Heading For Hawkinge"); }); Timeout(initTime += 5, () => { GamePlay.gpHUDLogCenter("Intercept them"); }); } if (Time.tickCounter() % 108000 == 54000) // 108000 = 60 min repeat, 54000 = 30 min delay. { GamePlay.gpPostMissionLoad("missions/channelv6/BM1/Practice1.mis"); GamePlay.gpHUDLogCenter("Intell German Bomber Raids Heading For Lympne"); } if (Time.tickCounter() % 108000 == 90000) // 60 min repeat, 50 min delay { GamePlay.gpPostMissionLoad("missions/channelv6/BM1/Practice2.mis"); GamePlay.gpHUDLogCenter("Intell German Bomber Raids Heading For Manston/Ramsgate"); }); } } |
Thread Tools | |
Display Modes | |
|
|