stock
RegisterHamPlayer
Syntax
stock HamHook:RegisterHamPlayer(Ham:function, const Callback[], Post=0)
Description
Hooks the virtual table for the player class.
An example would be: RegisterHam(Ham_TakeDamage, "player_hurt");
Look at the Ham enum for parameter lists.
Parameters
| function | The function to hook. |
|---|---|
| callback | The forward to call. |
| post | Whether or not to forward this in post. |
Return
Returns a handle to the forward. Use EnableHamForward/DisableHamForward to toggle the forward on or off.