DHookParam.GetObjectVar Method

Gets an object's variable value.

any GetObjectVar(int num, int offset, ObjectValueType type)

Parameters

int num

Parameter number to get, starting at 1.

int offset

Byte 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 or invalid Object type.