OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: neilreed on 25 May 2008, 13:14:40
-
Hi iam creating a mission that requires the computer to be on for 48 hours . but i only want the mission during the daylight hours between 7.30 and 3.30
how can i use skiptime command to skip time at 3.30 back or forward to 7.30 . constantly/ or looped.
can i use a trigger that activates at 3.30pm all the time and skips time to 7.30am ?
thanks
reed101
-
A very simple way to do this is to use the commands daytime and skiptime in a trigger.
EG:
Set the trigger to be repeating and set the Condition field to be
daytime>=15.5
then put
skiptime 16in the Activation field
What happens here is that when the time reaches 3:30 pm the trigger will activate and skip forward 16 hours. Note that you need to check that the time is >= 15.5 not just = 15.5 in case it checks at 15.49 and then again at 15.51. If you used only the = then it would not trigger.
-
thank you very much . i had developed a workaround using some of your earlier answers but this is much better.
thanks again .
reed101