Jump to content
Sign in to follow this  
gassybutt

Any way to stop the day/night cycle?

Recommended Posts

For example, I would like to play a very long mission that is forever dawn or dusk - light enough so that you don't need nv goggles and dark enough to see the explosions lighting up the scenery. Does anyone know if there's some bit of code that achieves this? Is it even possible?

Share this post


Link to post
Share on other sites

Something like this maybe:

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">while{true}do{sleep 10;skiptime -(10/60/60)};

Share this post


Link to post
Share on other sites

Thanks T_D but it came up with an error " |#| number expected " on the sleep command.

Just toying around with skiptime might be a good workaround for now..

I added a radio trigger with

skiptime 4

to the init line and now I can skip 4 hours ahead anytime I want to a desired time of day.

But if anyone has any idea about code to make it automatically stay at the same time of day, your input would be appreciated.

Share this post


Link to post
Share on other sites

edited: As T_D suggested, use a loop that sleeps for X seconds, but then use setDate to set the time. Skiptime will make the coulds jump about, whereas setdate does not.

An sqs would be very easy to create, something like this (not tested):

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">#loop

~10

setDate [1986, 2, 25, 16, 0]

goto "loop"

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  

×