C4 Engine
C4 Engine API Documentation

Variable::SetValue

Defined in:  C4Variables.h
Sets the variable value as a string.
Prototype

void SetValue(const char *value);

Parameters
value A pointer to a string that will become the new variable value.
Description
The SetValue function sets the value of a variable to the string specified by the value parameter. If the string is longer than kMaxVariableValueLength characters, then it is truncated.

If the variable has observers installed, then they are invoked after the variable's value is set.
See Also

Variable::GetValue

Variable::GetIntegerValue

Variable::SetIntegerValue

Variable::GetFloatValue

Variable::SetFloatValue