DHookGetParamObjectPtrVar Function

Gets an objects variable value

any DHookGetParamObjectPtrVar(Handle hParams, int num, int offset, ObjectValueType type)

Parameters

Handle hParams

Handle to params structure

int num

Param number to get.

int offset

Offset within the object to the var to get.

ObjectValueType type

Type of var it is

Return Value

Value of the objects var. If EHANDLE type or entity returns entity index.

Errors

Invalid handle. Invalid param number. Invalid param type. Invalid Object type.