UnhookEvent Function

Removes a hook for when a game event is fired.

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

Parameters

const char[] name

Name of event.

EventHook callback

An EventHook function pointer.

EventHookMode mode

Optional EventHookMode determining the type of hook.

Errors

Invalid callback function or no active hook for specified event.