cGs! mIKE

1 hour day, 20 minute night...then repeat

13 posts in this topic

Anyone know how to properly have the server run day time for 1 hour,  then give a complete 15 to 20 minute night cycle?  then rinse and repeat.

We run a 3 hour restart timer as well if that helps point me in the right direction?

I see other similar threads, but they seem old.  Not sure if they still work.

regards,

Mike

Share this post


Link to post
Share on other sites
if (!isServer) exitWith {};
while {true} do
{
	if (daytime >= 18 || daytime < 7) then
	{
		setTimeMultiplier 12
	}
	else
	{
		setTimeMultiplier 4
	};
	uiSleep 30;
};

adjust the numbers to your liking

Share this post


Link to post
Share on other sites
Advertisement
4 hours ago, Dizzturbed said:

if (!isServer) exitWith {};
while {true} do
{
	if (daytime >= 18 || daytime < 7) then
	{
		setTimeMultiplier 12
	}
	else
	{
		setTimeMultiplier 4
	};
	uiSleep 30;
};

adjust the numbers to your liking

I'm just trying to get my head around this. So when in game time is 1800 hours to 0700 hours, the time multiplier is 12, and then from 0700 to 1800 the time multilpier is set to 4. Does this have any impact on hunger/thirst if time is accelerated?

Share this post


Link to post
Share on other sites
26 minutes ago, kuplion said:

I'm just trying to get my head around this. So when in game time is 1800 hours to 0700 hours, the time multiplier is 12, and then from 0700 to 1800 the time multilpier is set to 4. Does this have any impact on hunger/thirst if time is accelerated?

No it doesn't :) Not sure how it's measured with food/thirst, but this shouldn't interfere with it. 

1 person likes this

Share this post


Link to post
Share on other sites
On 4/14/2016 at 4:13 AM, Dizzturbed said:

if (!isServer) exitWith {};
while {true} do
{
	if (daytime >= 18 || daytime < 7) then
	{
		setTimeMultiplier 12
	}
	else
	{
		setTimeMultiplier 4
	};
	uiSleep 30;
};

adjust the numbers to your liking

would you run this from an SQF?

Share this post


Link to post
Share on other sites
3 hours ago, second_coming said:

If you use the development version of this I have added in the ability to control the day/night cycles, look in the config.sqf to configure it.

https://github.com/secondcoming/a3_exile_occupation/blob/development/config.sqf#L24-L28

Thanks for your response. But, for the sake of argument, where would I add the time thingy if I didn't use your AI system? 

Share this post


Link to post
Share on other sites

Posted (edited)

56 minutes ago, InsertCoins said:

Thanks for your response. But, for the sake of argument, where would I add the time thingy if I didn't use your AI system? 

just disable all the bits you don't want and leave that part active. You could probably still use the loot crates (if you set the number of AI to 0), heli crashes, fast night and public bus without using DMS

Edited by second_coming

Share this post


Link to post
Share on other sites
9 hours ago, second_coming said:

just disable all the bits you don't want and leave that part active. You could probably still use the loot crates (if you set the number of AI to 0), heli crashes, fast night and public bus without using DMS

Yeah, but for the sake of argument let's  say I wouldn't want to add anything else to my server (I'm going the occupation stripped way because I like the extra features), how would one implement the speeduptimethingy?

Share this post


Link to post
Share on other sites
Advertisement

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 account

Sign in

Already have an account? Sign in here.


Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.