OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: tai mai shu on 27 Aug 2002, 22:46:04

Title: How do i make the "skiptime" command for every second that passes?
Post by: tai mai shu on 27 Aug 2002, 22:46:04
hi, how im wondering how i make the "skiptime" command  activate for every second that passes ingame.

for example, every second that passes in real-time, the "in-game" time skips 5 seconds.
Title: Re:How do i make the "skiptime" command for every second that passes?
Post by: seanver on 27 Aug 2002, 23:00:09
try in a script

#loop

skiptime 0.084
~1

goto "loop"
Title: Re:How do i make the "skiptime" command for every second that passes?
Post by: tai mai shu on 27 Aug 2002, 23:08:40
sweet, thanks m8
Title: Re:How do i make the "skiptime" command for every second that passes?
Post by: _54th_Yoshi on 28 Aug 2002, 17:01:59
How can you make it so time during the night is faster than day?
Title: Re:How do i make the "skiptime" command for every second that passes?
Post by: Cedaie on 28 Aug 2002, 17:25:07
theres probably a night time thing that u can use to question whether its night time then ud write

#loop

skiptime 0.084
~1
? (is nighttime):goto "nightloop"
goto "loop"

#nightloop

skiptime 0.200
~1
? (is daytime):goto "loop"
goto "nightloop"
Title: Re:How do i make the "skiptime" command for every second that passes?
Post by: Messiah on 28 Aug 2002, 17:28:10
theres a new command in 1.75 that checks if it is nighttime or not - look at the official command reference
Title: Re:How do i make the "skiptime" command for every second that passes?
Post by: _54th_Yoshi on 28 Aug 2002, 17:43:46
i don't have the res expansion  :(
Title: Re:How do i make the "skiptime" command for every second that passes?
Post by: tai mai shu on 28 Aug 2002, 20:35:20
hmm,this is gonna be for multiplayer map.

ive heard somewhere that the ~1 command is slightly different on ALL computers. so some computers will go thru the day slighyty faster or slower than others.  over a period of 30 minutes, it could causee quite a big error.

is this true?

if so, can someone plz explain how to run the comand on the SERVERS computer.  so only the server computer counts the ~1 command, and then sends a public variable to the other client computers  which in turn sets offf the skiptime command???? help????

peace
tai mai shu