A Lua in game console.

A place for users of OGRE to discuss ideas and experiences of utilitising OGRE in their games / demos / applications.
User avatar
Posts: 224
Joined: Thu Mar 15, 2007 10:05 am
Location: Sydney, Australia
x 7

Re: A Lua in game console.

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

"He'd never realized that, deep down inside, what he really wanted to do was make things go splat."
Terry Pratchett, Reaper Man
Post Reply