Home   Help Search Login Register  

Author Topic: Skiptime how to make it daylight only.  (Read 1406 times)

0 Members and 1 Guest are viewing this topic.

Offline neilreed

  • Members
  • *
Skiptime how to make it daylight only.
« 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

Offline THobson

  • OFPEC Patron
  • Former Staff
  • ****
Re: Skiptime how to make it daylight only.
« Reply #1 on: 26 May 2008, 11:48:58 »
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
Code: [Select]
daytime>=15.5
then put
Code: [Select]
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.
« Last Edit: 26 May 2008, 13:03:07 by THobson »

Offline neilreed

  • Members
  • *
Re: Skiptime how to make it daylight only.
« Reply #2 on: 26 May 2008, 23:06:04 »
thank you very much . i had developed a workaround using some of your earlier answers but this is much better.
thanks again .
reed101