Jump to content
Sign in to follow this  
jantsik

Skipping time

Recommended Posts

Hi ppl!

I'm making a mission for CWR2s Everon, it's something like "warfare".

Anyway, i want the game time to skip 2 hrs after every 5 minutes irl

I've searched other forums and so on, but i couldn't find a good solution for this.

If your awnser includes using a script or smth, please explain to me how to use scrips,where to place them and so on... cuz the last time i did something like this was 5 years ago, i don't remember anything anymore...:o

Share this post


Link to post
Share on other sites

Are you looking to literally skip 2 hours after 5 minutes of real time, or are you trying to "speed up" ingame time to make ingame time of 2 hours = real time of 5 minutes, aka 24 ingame mins = 1 real minute?

Share this post


Link to post
Share on other sites

Both would be great, then i can test and see which one i like more...

tho i was talking about skipping 2 hrs, after 5 minutes of playing the game in real time

Share this post


Link to post
Share on other sites

Hi,

Something like this maybe:

if (!isServer) exitWith {};

private ["_delay", "_increment"];
_delay = 540;
_increment = 2;

while { true } do
{
  private ["_date", "_hour"];
  _date = date;
  _hour = (_date select 3) + _increment;
  _date set [3, _hour];

  setDate _date;

  sleep _delay;
};

To implement this:

  • Create a file called init.sqf in your mission root folder if you don't have it already
  • Put inside init.sqf: [] execVM "skipTime.sqf";
  • Create a file in your mission root folder with name skipTime.sqf
  • Paste the code above inside the skipTime.sqf

Not tested,

_neo_

Edited by neokika

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  

×