With Exile, I was able to use this script to accelerate time:
if (!isServer) exitWith {};
while {true} do
{
if (daytime >= 18 || daytime < 6) then // after 7pm and before 5am time multiplier changes
{
setTimeMultiplier 13 // adjust this value for slower or faster night cycle ( 24 hours will take 1 hour )
}
else
{
setTimeMultiplier 5 // adjust this value for slower or faster day cycle ( 12 hours will take 1 hour )
};
uiSleep 30;
};
I called it from init.sqf:
[] execVM "custom\time\time.sqf"; // Time
This doesn't seem to work with Epoch. Do I need to change something with the code?
Question
BetterDeadThanZed
With Exile, I was able to use this script to accelerate time:
if (!isServer) exitWith {}; while {true} do { if (daytime >= 18 || daytime < 6) then // after 7pm and before 5am time multiplier changes { setTimeMultiplier 13 // adjust this value for slower or faster night cycle ( 24 hours will take 1 hour ) } else { setTimeMultiplier 5 // adjust this value for slower or faster day cycle ( 12 hours will take 1 hour ) }; uiSleep 30; };
I called it from init.sqf:
[] execVM "custom\time\time.sqf"; // Time
This doesn't seem to work with Epoch. Do I need to change something with the code?
Link to comment
Share on other sites
8 answers to this question
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now