OrpheuGetFunctionFromEntity

Retrieves a handler to a function given the ID of an entity, the function name and the classname This function is a virtual function (a function defined in abase class and implemented differently by each extender class) For example: every class that extends CBaseEntity has a Spawn function. That function is defined in CBaseEntity and implemented differently by each class derived from CBaseEntity

Syntax

native OrpheuFunction:OrpheuGetFunctionFromEntity(id,const libFunctionName[],const libClassName[]) /** * Retrieves a handler to a function given an object, the function name and the classname * This function is a virtual function (a function defined in abase class and implemented * differently by each extender class) * For example: every class that extends CBaseEntity has a Spawn function. That function is defined in CBaseEntity * and implemented differently by each class derived from CBaseEntity * * @param object An object. More precisely, the address of a C++ object. This should be used for classes that are not entities * @param libFunctionName The library function name as it is in the file created to define the function * @param libClassName The library function name as it is in the file created to define the function * @return A handler to the function */ native OrpheuFunction:OrpheuGetFunctionFromObject(object,const libFunctionName[],const libClassName[]) /** * Retrieves a handler to a function given the id of a monster of monstermod, the function name and the classname * This function is a virtual function (a function defined in abase class and implemented * differently by each extender class) * For example: every class that extends CBaseEntity has a Spawn function. That function is defined in CBaseEntity * and implemented differently by each class derived from CBaseEntity * * This function goes against the spirit of orpheu of hardcoding the less possible but without it would be much * more complex to use virtual functions * * @param id The id of a monster from monstermod * @param libFunctionName The library function name as it is in the file created to define the function * @param libClassName The library function name as it is in the file created to define the function * @return A handler to the function

Usage

id The id of the entity
libFunctionName The library function name as it is in the file created to define the function
libClassName The library function name as it is in the file created to define the function

Return

A — handler to the function

Defined in orpheu.inc at line 189 . This documentation was automatically generated from source.