OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: kueter on 20 May 2003, 01:33:54

Title: time changes
Post by: kueter on 20 May 2003, 01:33:54
hello all, :P
      Can someone please tell me how to slowly change the time during a mission...ie a raid that begins at 1am or so and ends around 6am. ???

Thanks,
Kueter


Title: Re:time changes
Post by: LCD on 20 May 2003, 03:13:20
skiptime command ;D

from da command referance

Quote
skipTime duration

Operand types:
duration: Number
Type of returned value:
Nothing
Description:
Skip time. Daytime is adjusted, weather change is estimated, no changes in any units are done. Duration is in hours.

Example:
skipTime 2.5

so if u wanna make script dat skips som time every som secs u do it like dat

Code: [Select]
_how = _this select 0
_wen = _this select 1

#loop
~_wen
skiptime _how
goto "loop"

if u exec it

[0.5,30] exec "scriptname.sqs" it will move 0.5 hr every 30 sec

LCD OUT