XxLunaMothxX Posted August 9, 2012 Share Posted August 9, 2012 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 Link to comment Share on other sites More sharing options...
luthienanarion Posted August 12, 2012 Share Posted August 12, 2012 (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 August 12, 2012 by luthienanarion Link to comment Share on other sites More sharing options...
Recommended Posts