HookEvent Function

Creates a hook for when a game event is fired.

void HookEvent(const char[] name, EventHook callback, EventHookMode mode)


const char[] name

Name of event.

EventHook callback

An EventHook function pointer.

EventHookMode mode

Optional EventHookMode determining the type of hook.


Invalid event name or invalid callback function.