ScenEdit_SetStartTime

All discussions & material related to Command's Lua interface

Moderators: angster, RoryAndersonCDT, michaelm75au, MOD_Command

Post Reply
Parel803
Posts: 941
Joined: Thu Oct 10, 2019 3:39 pm
Location: Netherlands

ScenEdit_SetStartTime

Post 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
KnightHawk75
Posts: 1850
Joined: Thu Nov 15, 2018 7:24 pm

RE: ScenEdit_SetStartTime

Post 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'})
 
Parel803
Posts: 941
Joined: Thu Oct 10, 2019 3:39 pm
Location: Netherlands

RE: ScenEdit_SetStartTime

Post by Parel803 »

Thanks for youre reply. Merry Xmas
with regards GJ
Parel803
Posts: 941
Joined: Thu Oct 10, 2019 3:39 pm
Location: Netherlands

RE: ScenEdit_SetStartTime

Post 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
KnightHawk75
Posts: 1850
Joined: Thu Nov 15, 2018 7:24 pm

RE: ScenEdit_SetStartTime

Post 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.

Parel803
Posts: 941
Joined: Thu Oct 10, 2019 3:39 pm
Location: Netherlands

RE: ScenEdit_SetStartTime

Post by Parel803 »

thx
Post Reply

Return to “Lua Legion”