![]() |
|
#2
|
|||
|
|||
|
Below is a script I cam up with but I guess it is not correct also the hours i am looking for are as follows.
1. mission load 30 sec 2. spaced to load every 2 hours 1100 1325 1530 2130 If any one can help thanks. using System; using maddox.game; using maddox.game.world; using System.Collections.Generic; public class Mission : AMission { public override void OnTickGame() { if (Time.tickCounter() % 866000 == 216000) // 480 min repeat, 5 min delay. { GamePlay.gpPostMissionLoad("missions/channelv6/BM1/Blue1.mis"); GamePlay.gpPostMissionLoad("missions/channelv6/BM1/Red1.mis"); double initTime = 0.0; Timeout(initTime += 30, () => { GamePlay.gpHUDLogCenter("10 July 1940 1100hrs German attack on shipping convoy!"); }); } if (Time.tickCounter() % 215999 == 432000) // 480 min repeat, 240 min delay. { GamePlay.gpPostMissionLoad("missions/channelv6/BM1/Blue2.mis"); GamePlay.gpPostMissionLoad("missions/channelv6/BM1/Red2.mis"); double initTime = 0.0; Timeout(initTime += 30, () => { GamePlay.gpHUDLogCenter("10 July 1940 1325hrs German attack on shipping convoy!"); }); } if (Time.tickCounter() % 431999 == 648000) // 480 min repeat, 480 min delay. { GamePlay.gpPostMissionLoad("missions/channelv6/BM1/Blue3.mis"); double initTime = 0.0; Timeout(initTime += 30, () => { GamePlay.gpHUDLogCenter("10 July 1940 German bomber attack on sothwest England!"); } if (Time.tickCounter() % 647999 == 866000) // 240 min repeat, 720 min delay. { GamePlay.gpPostMissionLoad("missions/channelv6/BM1/Blue4.mis"); double initTime = 0.0; Timeout(initTime += 30, () => { GamePlay.gpHUDLogCenter("10 July 1940 2130-0530 German bomber attack o airfields!"); }); } } |
|
|