Where to learn hooks?

Can somone teach me some few examples of hooks? I have understood that they can run a function if somethin happens, but I dont know the syntax for them. Help!

[lua]
hook.Add(“event”,“unique_name”,func) --“unique_name” can be anything like “hubbabubba” or “DeRp_z0r”
[/lua]
Yeah like you said func will get called when the event occurs.

Here’s a list of valid events.

So if I want to use the touch functio for a SENT, I write

[lua]
hook.Add(“ENT:Touch”,“mAh”,func)
[/lua]

No you can’t hook onto SENT event, you can only use the ones in the link I posted.

OK.

:devil: == :eng101: