okapi_build_vfunc_ptr

Синтаксис

native okapi_func:okapi_build_vfunc_ptr(ptr,offset,okapi_arg:ret,okapi_arg:...)

Употреба

ptr
Address of the object
offset
Offset of the function in the virtual table
ret
Return type of the method
...
Rest of the types for the arguments of the function

Описание

Attaches okapi to a virtual function of an object so you can hook it and call it.

Забележка

You don't need to pass arg_cbase in the argument list for the entity itself.

Връщаща стойност

Handler to the function attached

Грешка

Invalid object address