Fulqrum Publishing Home   |   Register   |   Today Posts   |   Members   |   UserCP   |   Calendar   |   Search   |   FAQ

Go Back   Official Fulqrum Publishing forum > Fulqrum Publishing > IL-2 Sturmovik: Cliffs of Dover > FMB, Mission & Campaign builder Discussions

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #2  
Old 07-16-2011, 04:08 AM
king1hw king1hw is offline
Approved Member
 
Join Date: Jul 2010
Posts: 64
Default Trying to set the times correctly?

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!");
});

}
}
Reply With Quote
 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 03:49 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
Copyright © 2007 Fulqrum Publishing. All rights reserved.