lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


Hi.

Call it what you will, I want to be able to write lua scripts like this:

function latentFunction()
   doSomeStuff()
   waitForSomeEvent()
   doSomeOtherStuff()
end

Where waitForSomeEvent() haults execution and saves enough information
that another function can later retrieve that information and resume
execution.

I've read a lot of the archived discussion regarding games etc. and
downloaded LuaCC to implement a solution. Unfortunatly with LuaCC things
like dofile()s end up trying to write outside their memory.

Are there any fixes or updates or alternatives anyoneone can direct me
towards?

Thanks, Gary.