OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting Multiplayer => Topic started by: B-2-0 on 08 Jul 2003, 15:20:33

Title: Time acceleration?
Post by: B-2-0 on 08 Jul 2003, 15:20:33
I have seen missions where the time is accelerated whilst 'life' goes at the normal pace....how is this done in a MP mission?

I want to simulate say, 1600hrs going to 0100hrs in around 30-45 mins but i would like it to look as smooth as is possible.

Thanx in advance :thumbsup:
Title: Re:Time acceleration?
Post by: Buzz on 13 Jul 2003, 04:59:02
I use a simple script to do it...
Call it time.sqs or something. It will loop the time so several days can pass throughout the mission but you could probably modify it to do what you want.
Code: [Select]
i=0

#loop
? (i<9999999) : goto "timeskip"
exit

#timeskip
i=i+1
skiptime 0.2
~5
goto "loop"