DHookParam.SetObjectVarVector Method

Sets an object's vector variable value.

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

void SetObjectVarVector(int num, int offset, ObjectValueType type, const float vec[3])

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.

const float[3] vec

The value to set the vector var to.

Errors

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