Page 3 of 3

Re: A Lua in game console.

Posted: Wed Jul 03, 2024 6:53 am
by merlinblack

After running what ever the user typed - you can print out what is on the lua stack. So when the user types 'print(1+2)', and you run that through Lua, '3' will be left on the stack and you just need to output it.