# fsVarsOVarSet The **fsVarsOVarSet** function can be used to set the value of a specific `OVar`.   ##### Syntax ``` wasm FsVarError fsVarsOVarSet( FsOVarId oVarId, FsUnitId unitId, double value, FsObjectId target ); ```   ##### Parameters
ParametersDescription
oVarId

The ID of an OVar (found using fsVarsGetOVarId or fsVarsRegisterOVar).

unitIdThe ID of a unit (found using fsVarsGetUnitId).
valueThe new value of the variable.
target

The ID of the object on which the variable is being set.

  ##### Return Values The function returns `FsVarError`, where 0 means there is no error.   ##### Example ``` wasm FsUnitId unitId = fsVarsGetUnitId("DEGREES"); FsOVarId oVarId = fsVarsRegisterOVar("Toto", "LIGHTING:EMISSIVE"); double value = 8; if (fsVarsOVarSet(oVarId, unitId, value) == FS_VAR_ERROR_NONE) { // valid } else { // error } ```