• Hook Priority? Variable Mutex?
    0 replies, posted
As referenced here: [url]http://wiki.garrysmod.com/?title=Category:Lua_hooks[/url] It looks like hooks function the same way that interrupts do. You tie a function to some event and upon trigger, the function will run. So what happens when you have a large hook function that is running and a new and different event with its own hook function is triggered? Does the interrupt get interrupted? Is there priority levels associated with hooks? The reason I ask is that on two different computers with the same lua code, I am getting different results. On both computer I can see the UDP data packets inside the game but on the faster computer, when I 'hook' the other function, the UDP data stored inside the global variable becomes 'nil'. On the slower computer I am not running into this issue. As an aside, is there a gmod module that reads serial data? (COM ports)
Sorry, you need to Log In to post a reply to this thread.