OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting Multiplayer => Topic started by: Neal on 19 Jul 2005, 18:35:58

Title: Accelerate time
Post by: Neal on 19 Jul 2005, 18:35:58
How can I accelerate time? Not really player movements but the time. Making like 1 min be 1 sec real time to the OFP in-game watch?

If you play MFCTI theres an option to Accelerate time, anyone know how to do that?
Title: Re:Accelerate time
Post by: Artak on 19 Jul 2005, 19:34:54
the command for it is skiptime amount

Skiptime 1 would skip one hour in game.
With a loop script you can have the time running as fast as you want.

#loop
skiptime 0.5
~30
goto "loop"

The above would skip 30 minutes every 30 seconds. Be careful with lag though, a short 0.001 delay and skiptime 0.0001 will make the time acceleration more fluid and smooth, but will also create severe lag.
Also note that skiptime is local for each player.
Title: Re:Accelerate time
Post by: Andersen_Nor on 22 Jul 2005, 13:21:51
How can I accelerate time? Not really player movements but the time. Making like 1 min be 1 sec real time to the OFP in-game watch?

If you play MFCTI theres an option to Accelerate time, anyone know how to do that?

----------------------

I have a script for this implementet in Andersen Ground War 2 on  mission depot.

This script also syncronize all player clients every minute or so.