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
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now