OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting Multiplayer => Topic started by: Terox on 10 Mar 2003, 17:57:31

Title: Skiptime compressing 24hrs into 30 minutes
Post by: Terox on 10 Mar 2003, 17:57:31
What i want to do is compress a 24 hour period smoothly into a 30 minute game

I know how to use the skiptime command for admins to select various times of day when starting a map

But what i want to do with this particular map is start the game at 15:00 and have it cycle through day-night-day again with a smooth transition

Do i have to create a looping script to do it or is there another way

Title: Re:Skiptime compressing 24hrs into 30 minutes
Post by: MorMel on 11 Mar 2003, 10:50:39
I think you'll have to create a looping script, which skips a certain amount of time per minute in a total of (23,5hours x 60) during a 30min mission. It's simple. Just a few maths and you'll have it workin'  ;)
Title: Re:Skiptime compressing 24hrs into 30 minutes
Post by: Nasty Buttler on 11 Mar 2003, 20:17:04
Ok, thats not how u do it......the way it has to be done for multiplayer is u need to change the time on the server only then tell the clients to update every 5-60 seconds....thats the way i have done it and it works perfectly....if u only do the loop the games on each client will end up in the different time....
Title: Re:Skiptime compressing 24hrs into 30 minutes
Post by: Nasty Buttler on 18 Mar 2003, 00:10:57
the timemove peeding up time method has been added to my script section of my webpage, check it out if your interested

www.backoff.ch/ofp
Title: Re:Skiptime compressing 24hrs into 30 minutes
Post by: Terox on 18 Mar 2003, 10:01:29
have done, thankyou :)