OrpheuCreateFunction
Gets the handler to a function given its address and the name that you give it in the file where you define the function
Syntax
native OrpheuFunction:OrpheuCreateFunction(address,const libFunctionName[],const classname[]="") /** * Gets the offset of the adress where the function is located to the base address of its library * * @param function A handler to the function * * @return The offset */ native OrpheuGetFunctionOffset(OrpheuFunction:function) /** * Gets the adress of a library * * @param libraryName The name of the library. For the mod library (cstrike,czero,etc) use "mod" * * @return The address */ native OrpheuGetLibraryAddress(const libraryName[]) /** * This native should retrieve the address of functions called from an address * For example by passing the address of the function X, and 1 as n, it should retrieve the address of the first * function called in X. It isn't confirmed to work on every condition and it should be use for experiments only * to help retrieving functions on Windows * * @param address The address to start the search at * @param number The number of the the call starting at 1 from the address * * @return The address of the function called
Usage
| address | The address where the function is |
| libFunctionName | The name of the function as it is in the file where the function is defined |
| classname | — |
Return
A — handler to the function
Defined in
orpheu_advanced.inc
at line 46
.
This documentation was automatically generated from source.