Whicker -> [Logged] SetScore function weirdness (12/6/2019 4:10:30 AM)
|
in the lua console if you do: ScenEdit_SetScore('Blue',100) it works fine. if you do anything else after that you will get an error - so even: ScenEdit_SetScore('Blue',0) local a = 2 will give an error: ERROR: [string "Console"]:2: unexpected symbol near ''No reason given'' if you add a reason it gives: ERROR: [string "Console"]:2: unexpected symbol near ')' no save, fairly sure this is universal, Gunner has same issue. Open a scen, go to the lua console and use that function and then anything on line 2, even an empty line and you should get the error. I tested in CMANO and sort of saw the same thing but it seemed to work a little better - sort of confused now as to what worked and what didn't though. The reason is optional right? didn't see anything saying it is, but I think it is. the code seems like it may still work in the game but I am not positive. In the console it gives an error for sure. [image]local://upfiles/59913/636359AC2CA04A2887C762BCA50AAFC5.jpg[/image]
|
|
|
|