Jump to content
🛡️FORUMS ARE IN READ-ONLY MODE Read more... ×
Sign in to follow this  
ios

Time/Day/Night

Recommended Posts

is it possible to make time pass more quickly during a mission without having activated a trigger or a radio command, I would like the mission begins at night but we should not wait 3 hours (irl) to see day come into the game so a script that allows me to accelerate the time would be great, I thought I saw with command "skiptime" I would arrive at my end but I do not know how to implement this.

Any Help would be appreciated :)

Share this post


Link to post
Share on other sites

save as skiptime.sqf

// how many seconds to skip every second.
_skipTime = _this select 0;

// 1 second == 0.00026.
while {true} do {
skipTime (_skipTime*0.00026);
sleep 1;
};

place this in init.sqf

_null = [1] execVM "skiptime.sqf";

this will make the mission skip ahead 1 seconds every second, making actual lenght of an hour be 30 minutes.

Adjust to whatever you need.

example 0.5 will make 1 hour be 45 minutes, 2 will make 1 hour be 20 minutes etc..

Share this post


Link to post
Share on other sites

tested & approved !

Thanks again Demonized !

Share this post


Link to post
Share on other sites
Sign in to follow this  

×