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
-
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.
-
try in a script
#loop
skiptime 0.084
~1
goto "loop"
-
sweet, thanks m8
-
How can you make it so time during the night is faster than day?
-
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"
-
theres a new command in 1.75 that checks if it is nighttime or not - look at the official command reference
-
i don't have the res expansion :(
-
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