Jump to content
Sign in to follow this  
hicks88

Fast Time

Recommended Posts

does anyone know the script for fast time. it causes time to pass fast without causing the units to move fast

Share this post


Link to post
Share on other sites

Set global variable stopmodtime to true to return to normal time scaling

[scale factor]exec"timemod.sqs"

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

stopmodtime=false

_scale = _this select 0

_tensecs = (1.0/3600.0)*10.0

_skip = _tensecs * _scale

;Every ten seconds we skip 10 seconds * scale factor hours

#modtime

~10

skipTime _skip

? !stopmodtime: goto "modtime"

exit

For example, for twice the normal time speed:

[2.0]exec"timemod.sqs"

Share this post


Link to post
Share on other sites

I believe you want skipTime, a command that makes the clock skip a few hours, right? It workd like this:

skipTime 2

Put it in a trigger or a script. It will skip two hours of clock time, without affecting units etc. Mandobles example is a good way to use it.

Share this post


Link to post
Share on other sites

i wanted the first reply, thankyou Mandoble. i changed the ten seconds to .01 of a second and make it skip 1 second, it makes it appear as iff time is passing really fast, i day goes through in like 30 mins, so you get day and night ops in a single mission

Share this post


Link to post
Share on other sites
Guest

not to poke in here, but I thought there was a command like accelerate time or something similiar that did this in one quick shot, or maybe I was wrong..

Share this post


Link to post
Share on other sites

Yes, there's such a command; setAccTime. For instance:

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

setAccTime 10

will make time to go ten times faster, but also the units will move ten times faster, which hicks88 try to avoid.

Share this post


Link to post
Share on other sites
Guest

gotcha, thanks for making that difference, I will probably be using this function as well (accel time only, not units/whatnot) - good to know, great thread, copied and pasted. wink_o.gif

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  

×