Jump to content
Sign in to follow this  
Danny960

Fast time module?

Recommended Posts

Hello,

I would like to have an accelerated time in the mission made in editor just like in one of the warfare missions (I think the time can be set to x4 or x8). I mean the day/night cycle not the game pace. I searched whole forums but didn't find anything useful, also searched wiki. It would be nice if there was a module like that. Any ideas how can I get it to work?

Ps. sorry for my english

Share this post


Link to post
Share on other sites

Create trigger with activation condition: true and with "on activation field":

tmp = [4] spawn {timeJump = (_this select 0)/60;while {true} do {sleep 60; skipTime timeJump};}

this should make do some time jumps (in this example 1 per minute) - the offset you can define in spawn param (currently: 4)

Share this post


Link to post
Share on other sites

It worked :)

But I have another question, which parameter controls what?

What do I need to change to skip time every 5 seconds not every minute for example? I tried changing 60 to 1 and it skipped too fast.

Share this post


Link to post
Share on other sites
It worked :)

But I have another question, which parameter controls what?

What do I need to change to skip time every 5 seconds not every minute for example? I tried changing 60 to 1 and it skipped too fast.

Edit these to the script:

_this select 0)/x

sleep y

Every y seconds skip x seconds. Didn't tested it, and I am very, very tired. :)

Share this post


Link to post
Share on other sites

I still can't make it to be 30 seconds every 1 second, it jumps too fast. Any ideas how to make it work?

Share this post


Link to post
Share on other sites

I think it should be:

tmp = [4, 30] spawn {while {true} do {sleep (_this select 1); skipTime ((_this select 0)/ (60 * (_this select 1)))};}

Share this post


Link to post
Share on other sites

tested:

tmp = [4, 30] spawn {while {true} do {sleep (_this select 1); skipTime ((_this select 0)*(_this select 1)/ 3600)};}

but still it's not perfect because it looses time for sleep

Share this post


Link to post
Share on other sites

It still doesn't work for me...

I adjusted it to be 1 minute in game to be 2 seconds real time, but I really can't make it to be 30 secs in game = 1 second real time. It's the same but 1 minute time jumps are far more visible (when looking at shadows or sun) than 30 second jumps which are more fluent.

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×