Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can Lua 'Timeout"?

Tags:

lua

Lets say I am running a script and the game client waits for the script to be finished before it updates. Can Lua do somthing of a 'timeout'? Like, can i set a priority on the update so it leaves the script to do the update and then after words could it go back to where it was in the script?

like image 760
Ninjai Avatar asked Nov 15 '22 14:11

Ninjai


1 Answers

You can also set a count hook with a suitable count for timeout and abort execution of the script in the hook.

like image 197
lhf Avatar answered Dec 07 '22 05:12

lhf