|
Thx..But how do all people using lua solve this problem? If i write a singlethreaded game in c, and wants to use lua as scripting, i have to trust whoever makes the scripts for the whole games mainthread not to hang ? Is lua a scripting or a programming language? Shouldnt the script<->mainprogram intergration almost be the most important property of a script?
h At 09:18 PM 7/7/2003 -0400, you wrote:
Håkon Evensen wrote:I want to execute a script but i dont want to leave the entire control of the host thread in the hands of the script. is it possible to set a line hook and break further execution from there?It's messy and I wouldn't do it, but where there is a will there is a way. Here are some references:http://lua-users.org/lists/lua-l/2003-04/msg00262.html http://lua-users.org/lists/lua-l/2003-04/msg00249.html