DHookParam.Set Method

Set the value of a parameter. Use only for: int, entity, edict, bool or float parameter types.

An entity parameter type can be set to NULL using INVALID_ENT_REFERENCE (-1).

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

void Set(int num, any value)

Parameters

int num

Parameter number to set starting at 1.

any value

Value to set it as (only pass int, bool, float or entity index).

Errors

Invalid handle, invalid param number or invalid param type.