HookEventEx Function

Creates a hook for when a game event is fired.

bool HookEventEx(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.

Return Value

True if event exists and was hooked successfully, false otherwise.

Errors

Invalid callback function.