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

Reply
 
Thread Tools Display Modes
  #1  
Old 07-18-2011, 02:35 PM
FG28_Kodiak FG28_Kodiak is offline
Approved Member
 
Join Date: Dec 2009
Location: Swabia->Bavaria->Germany
Posts: 884
Default

if (Time.tickCounter() % 215999 == 432000)
if (Time.tickCounter() % 431999 == 648000)
if (Time.tickCounter() % 647999 == 866000)

You use the modulo operator in c# (http://en.wikipedia.org/wiki/Modulo_operation)
So the result can never be greater or equal the divisor. The result of a modulo operation is the remainder of the division.
For example 9 mod 3 is 0,
10 mod 3 is 1
11 mod 3 is 2
12 mod 3 is 0
13 mod 3 is 1
14 mod 3 is 2
15 mod 3 is 0
you see there will never be a result like three or greater.
Same for your code your if clauses will never became true.

Also check:
double initTime = 0.0;
Timeout(initTime += 30, () =>
{
GamePlay.gpHUDLogCenter("10 July 1940 German bomber attack on sothwest England!");
} //<= missing );


double initTime = 0.0;
Timeout(initTime += 30, ...
doesn't make any sense to me. :/
if you want a 30sek delay simple use
Timeout(30, () =>

Last edited by FG28_Kodiak; 07-18-2011 at 03:04 PM.
Reply With Quote
Reply


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 12:09 AM.


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