How to change date/time in Lua console?

Post bug reports and ask for game support here.

Moderator: MOD_Command

Post Reply
JonBea
Posts: 6
Joined: Mon Nov 13, 2017 9:02 am

How to change date/time in Lua console?

Post by JonBea »

If it's possible. So far I've only managed to retrieve the current time with ScenEdit_CurrentTime.
mikmykWS
Posts: 7185
Joined: Tue Mar 22, 2005 4:34 pm

RE: How to change date/time in Lua console?

Post by mikmykWS »

Not sure there is a lua setter function for that?

Are you looking to do it in lua specifically or do you just want to change the time and date? If its the latter you can do it in Editor mode by selecting Scenario Times and Duration under the Editor drop down.

Mike
JonBea
Posts: 6
Joined: Mon Nov 13, 2017 9:02 am

RE: How to change date/time in Lua console?

Post by JonBea »

Lua specifically, it's something I wanted to be able to do from a script. But yeah, I haven't been able to find a function for it. I guess I'll put in a request with the development team or something.
Post Reply

Return to “Tech Support”