Jump to content
Sign in to follow this  
Joe98

Set the time in a script - set the time at random between 18:00 and 19:00

Recommended Posts

We all know that we can set the time in a scenario.

 

1. How do we set the time using a script?

 

2. Now that we have set the time using a script, how do we set the time at random between  18:00  and 19:00 ?

 

.

 

 

.

 

Share this post


Link to post
Share on other sites

I have the answer.

 

Firstly start any mission and note the time. Now add a trigger with the command

skiptime 1;

 

Start the mission, check the time, walk into the trigger and check the time again. The time has skipped forward one hour

 

============================================================================================

 

To solve my issue above:

Set the scenario time to 18:00 hours

Quite often when a mission starts a script runs.  If that is the case then at the top of your script type

skiptime (random 1);

 

Start the mission and the time will be anywhere from 18:00 hours to 19:00 hours at random.

(The goal is to have a slightly different start time every time we play the mission. It means the light is different).

 

.

 

 

 

 

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×