Jump to content

How to add real time to mod


Recommended Posts

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!

  • Like 1
Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
  • Create New...