RegisterHamPlayer
- Синтаксис
-
stock HamHook:RegisterHamPlayer(Ham:function, const Callback[], Post=0) { return RegisterHam(function, "player", Callback, Post, true); }
Переменная | Описание |
---|---|
function |
The function to hook. |
callback |
The forward to call. |
post |
Whether or not to forward this in post. |
- Описание
- 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.
- Возвращает
- Returns a handle to the forward. Use EnableHamForward/DisableHamForward to toggle the forward on or off.