Is it possible to make obj:queueGameEngineLua() return a value? Because writting all my code in one line is painful. I tried: value_from = obj:queueGameEngineLua('return value') value_from = obj:queueGameEngineLua('value')
Code: local command = obj:queueLuaCommand('return value') local result = obj:getLuaResult(command) Although I think at least one physics step has to occur between the two calls. EDIT: Actually, if your problem is writing all your code in a single line, there's also the option of using the [[ and ]] string delimiters. This allows your strings to span multiple lines: Code: obj:queueLuaCommand( [[ local value = someFunction() local otherValue = someOtherFunction(value) ]])