DHookParam.SetObjectVar Method

Sets an object's variable value.

The changes are only applied when MRES_ChangedHandled or MRES_ChangedOverride is returned in the callback.

void SetObjectVar(int num, int offset, ObjectValueType type, any value)

Parameters

int num

Parameter number to set, starting at 1.

int offset

Byte offset within the object to the var to set.

ObjectValueType type

Type of var it is.

any value

The value to set the var to.

Errors

Invalid handle, invalid param number, invalid param type or invalid Object type.