native

RegisterHamBots

Syntax

native RegisterHamBots(Ham:function, const Callback[], Post=0);

Description

Hooks the virtual table for CZ Bots entity class.
An example would be: RegisterHamBots(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 EnableHamForwardBots/DisableHamForwardBots to toggle the forward on or off.