Cunning fox Posted August 22, 2017 Share Posted August 22, 2017 Hello everyone! I'm trying to make a mod, that'll use real time to change something. It should look like this: local RealTime = smthing inst:DoPeriodicTask(1,function(inst) if RealTime == 19:30 then DoSomeThing end end) So my question is how to find RealTime? I saw in logs that it usually writes time when the game started: [00:00:00]: Current time: Tue Aug 22 14:10:26 2017 So where can I find it? Thanks everyone for your replies! I can give yo some skins, if I'll got answered! 1 Link to comment Share on other sites More sharing options...
ptr Posted August 22, 2017 Share Posted August 22, 2017 why not use standard lua function os.date()? for mods it will be GLOBAL.os.date() Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now