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
  #1  
Old 09-30-2012, 06:23 PM
FG28_Kodiak FG28_Kodiak is offline
Approved Member
 
Join Date: Dec 2009
Location: Swabia->Bavaria->Germany
Posts: 884
Default New Scripting Possibilities in Release candidate patch.

With the new patch its possible to get the Mission time.

Code:
double t = GamePlay.gpTimeofDay();
it's a double so you must convert it into time Format.
Code:
    static string CreateTimeString(double num)
    {
        double hours = Math.Floor(num); 
        double minutes = (num - hours) * 60.0; 
        double seconds = (minutes - Math.Floor(minutes)) * 60.0;  
        int H = (int)Math.Floor(hours);
        int M = (int)Math.Floor(minutes);
        int S = (int)Math.Floor(seconds);   
        return H.ToString() + ":" + M.ToString() + ":" + S.ToString(); 
    }

Also we get the possibility to set lables, but i had no luck to get it to work. So maybe others can give me a hint how to use it.
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 05:27 AM.


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