Say I have a the function testfunc().
Is it possible to make a hook that is called every time testfunc() is run? If so, how would I do that. Thanks in advance for the replies :)
[lua]hook.Call("YourHookName", GAMEMODE, args, args, args...)[/lua]
Just put that in your function and do
[lua]
hook.Add("YourHookName", "blah", function(arg1, arg2, arg3)
--stuff
end)
[/lua]
to add hooks to it.
Oh awesome, I saw hook.call but I just did quite get it. I see how to use it though, thanks.
Sorry, you need to Log In to post a reply to this thread.