OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: Terox on 08 Jul 2004, 22:11:48
-
Hi,
I came across a script or a function a while back but am unable to find it.
The script was a skiptime system, that took the current daytime as a variable, and the daytime you wanted to skip too and then processed the two, to come up with a skiptime value
any help would be greatly appreciated
-
sorted.
I didnt need anything fancy, i just needed a set time that a minimissionmaker could use to skiptime to his desired mission start time
This simple system is going to be used in a coop with probably 27 possible minimissions, each having different start times of the day, the end time of each minimission varying
very simply run on all machines
;; following is the skiptime value from midnight that the mission maker wants to start his minimission task at
_missionstart = 6.3
_skiptime = 24 - daytime
Skiptime (_skiptime + _missionstart)
The system would auto skip to midnight and then further to the minimission start time while the minimission intro cutscene faded to black to hide the transition