OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: 456820 on 26 Jun 2005, 12:06:52

Title: time
Post by: 456820 on 26 Jun 2005, 12:06:52
okay ive got some little thing about time ive seen somewhere you have to do something with the time to get the actual time you want
eg say i want all the fires to turn on when the time gets past 21:00hours then i take 20:00 and multiply it by somethig to get the actual time

then that leads onto my second question when time is past 20:00 i want an officer night equitment to start launching flares every 5minutes until it runs out then simply addmagazine the guy some more flares then he carries on but after every 3flares he fires he waits 10mins before starting to fire more
Title: Re:time
Post by: qqqqqq on 26 Jun 2005, 12:54:53
daytime
Title: Re:time
Post by: Planck on 26 Jun 2005, 13:05:57
There's a lot to be said for reading the command reference.

Doing so, not once but several times, will give you a good idea of what is available.   8)


Planck
Title: Re:time
Post by: 456820 on 26 Jun 2005, 14:24:14
ok how would i use this as in the com ref it doesnt have an example
also what about the second question about the guy firing flares ?
Title: Re:time
Post by: qqqqqq on 26 Jun 2005, 15:35:11
Trigger

daytime > 20
[] exec "flarescript.sqs"
Title: Re:time
Post by: 456820 on 26 Jun 2005, 16:21:05
thanks but what about the 20 does that mean 20:00 ?
Title: Re:time
Post by: CopyrightPhilly on 26 Jun 2005, 16:23:44
like it was said above, use the command reference

http://www.ofpec.com/editors/comref.php

and the 20 is in hours (0 being 00:00, 23 being 23:00)

cheers,
Phil