Jump to content
Sign in to follow this  
C4P741N

Skiptime Script

Recommended Posts

I have this script posted by RED somewhere on these forums, it increase timeflow but not unit movement. I believe it equates to an hour passing every minute. What needs to be modified in order for 24 hours game time pass in 1 hour real time?

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

_timeSkip = _timeSkip * 60

#init

_counter = 0

_oneMinute = 0.016667

#start

skiptime _oneMinute

~1

_counter = _counter + 1

? _counter < _timeSkip : goto "start"

goto "init"

I never was too good at scipts, much better at cpp's banghead.gif

edit: HERE is the original thread, just didn't want to dig it up.

Share this post


Link to post
Share on other sites

Try this:

TimeSkip.sqs

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">private ["_DLapse", "_IncTime"];

; Time in minutes a day in-game will take

_DLapse = _this select 0

_IncTime = ((24/_DLapse)/60)

; Time acceleration loop

#loop

~.04

skipTime (_incTime *.04)

goto "loop"

It takes 1 parameter, the real time an in-game day will take.

So, if you want, for example, a full 24-hour day to pass in one real-time hour, you would execute it like this:

[60] exec "TimeSkip.sqs"

This creates a great sense of time and really requires the player to plan ahead for the inevitable day/night cycle.

Share this post


Link to post
Share on other sites

Thanks AgentFox2, just what I need for a Fallout mission on West Leach Springs. thumbs-up.gif

Share this post


Link to post
Share on other sites

In semi-relation to my first post... In the flashpoint calander year what date is the summer solstice? Is OFP's seasons even that detailed? huh.gif or a more broad question, what time of year has the longer days?

I did a search and only came up with THIS thread, which didn't help.

Share this post


Link to post
Share on other sites
or a more broad question, what time of year has the longer days?

Summer, just as in real life..  wink_o.gif

(Depends on the island how long a day will be(their Lat/Long coords wich are in the config))

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  

×