Jump to content

Recommended Posts

Posted

How would I make a script that runs at a certain time and ends at another, or has another script start at the end of that? Like for example a script that is enabled at nighttime, then a script enabled at sunrise that disables that script. Or something like that. Could somebody help me out please? Kudos to whomever helps me out.

 

Regards, 2cooldays

Posted (edited)

if(GameHour < 5 || GameHour > 19) ; If earlier than 6am or later than 8pm. Change as needed.
  ; Do some stuff.
else
  ; Do some other stuff, if you like.
endif

 

Remember that GameHour has a float value, so always use < or > for comparison operators and not ==.

Edited by luthienanarion
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...