DHookParam.SetVector Method

Set the value of a vector parameter. Use only for: vector or vectorptr parameter types.

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

void SetVector(int num, const float vec[3])

Parameters

int num

Parameter number to set, starting at 1.

const float[3] vec

Value to set vector as.

Errors

Invalid handle, invalid param number or invalid param type.