OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: j-man on 17 Jan 2004, 03:48:18

Title: timer problem
Post by: j-man on 17 Jan 2004, 03:48:18
I have this timer script that waits for 10 minutes before doing something. The problem is that I also have a script to skip time. When I skip an hour, the timer hasn't skip time. My question is, is there a way to make the timer skip time when the skip time script has been used ???  :P
Title: Re:timer problem
Post by: myke13021 on 17 Jan 2004, 03:55:03
hmmm....a script that waits 10 mins....is this script activated by trigger? If yes, wouldn't it be easier to let the trigger wait till it launches the script?

If this shouldn't fit your desires...i think theres a variable named "time" which detects how long the mission already runs...i don't think it checks daytime....maybe you can get around with this...
Title: Re:timer problem
Post by: macguba on 17 Jan 2004, 03:59:36
No, I don't think so.   Skiptime just changes the time of day and weather, tides, etc.   It doesn't "do" anything in the mission.

The command time does indeed record time since the mission started.    Reserved variable _time records the time since a script started.    Daytime returns the time in the OFP world.    It should be possible to combine these to get what you want.

Or, when you skiptime you could just add the skiptime change to the timer.  
Title: Re:timer problem
Post by: j-man on 17 Jan 2004, 04:25:48
Thanks both of you, I got it to work ;D

All you have to do is not use the skip time command ;)