Jump to content
Sign in to follow this  
Taylor1984

Daytime question

Recommended Posts

Hi

 

How would you go about triggering something after X in-game time (the time you change with skiptime not the actual IRL time). Let's say for instance that the in-game time is X (any point in time in game that is) and I want something to happen after 1 hour of in-game time, how would I do that? I know how to trigger something at a certain in-game time but not how to count from a certain in-game time point to another.

 

Thanks

 

Share this post


Link to post
Share on other sites
5 minutes ago, Taylor1984 said:

Hi

 

How would you go about triggering something after X in-game time (the time you change with skiptime not the actual IRL time). Let's say for instance that the in-game time is X (any point in time in game that is) and I want something to happen after 1 hour of in-game time, how would I do that? I know how to trigger something at a certain in-game time but not how to count from a certain in-game time point to another.

 

Thanks

 

If you want to check or compare dates you can use dateToNumber and numberToDate.

If you want to do a simpler check when stuff will happen on the same day, simply use daytime.

 

dayTime is rather straightforward, 10 being 10:00, while 10.5 is 10:30.

 

Cheers

Share this post


Link to post
Share on other sites

Thanks. Daytime worked by checking the time between one hour and the next and so on.

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  

×