Page 1 of 1

ScenEdit_SetStartTime

Posted: Wed Dec 23, 2020 1:05 pm
by Parel803
Found this in the LUA console, not (yet)on the page github.io
It seems I cannot get it working, could someone please confirm or deny?
Used same format as SetTime ScenEdit_SetStartTime({Date='12:25:2020', Time='07:10:01'})
Or is it intended for something different than Editor, Scenario starts on. If so I do appologize.
I'm on .15 and still have to switch back to .14

With regards GJ

RE: ScenEdit_SetStartTime

Posted: Thu Dec 24, 2020 4:05 am
by KnightHawk75
With most commands case gets converted to upper case automatically but on a few of them it doesn't and you need to ensure it yourself. Try the follow which completes for me in 1147.14, though it looks like it only changes the current time and not the actual start time - so still broke.

Code: Select all

ScenEdit_SetStartTime({DATE='12:25:2020',TIME='07:10:01'})
 

RE: ScenEdit_SetStartTime

Posted: Thu Dec 24, 2020 10:04 am
by Parel803
Thanks for youre reply. Merry Xmas
with regards GJ

RE: ScenEdit_SetStartTime

Posted: Tue Dec 29, 2020 7:49 am
by Parel803
A follow up question if I may:
Is it correct that you cannot (yet) set the duration of the game via a LUA script?
with regards GJ

RE: ScenEdit_SetStartTime

Posted: Tue Dec 29, 2020 8:52 pm
by KnightHawk75
ORIGINAL: Parel803

A follow up question if I may:
Is it correct that you cannot (yet) set the duration of the game via a LUA script?
with regards GJ

Yeah far as I know that is correct as of 1147.14.


RE: ScenEdit_SetStartTime

Posted: Wed Dec 30, 2020 11:06 am
by Parel803
thx