OrpheuRegisterHook

Syntax

native OrpheuHook:OrpheuRegisterHook(OrpheuFunction:function,const hookFunctionName[],OrpheuHookPhase:phase = OrpheuHookPre)

Usage

function
A handler to the function
hookFunctionName
The function name in the plugin that shall be called upon interception of the original function
phase
The phase of the hook. It can have two values. Pre means "right before the original function is called". Post means "right after the original function is called"

Description

Hooks a function

Return

A handler to the hook