OnClusterValueChange
A value every level shares changed.
Comes on every level, the one that changed it too, at its next tick. value is nil when it was removed.
Syntax
Section titled “Syntax”function OnClusterValueChange(key, value, fromRegion) -- ...end| Parameter | Type | |
|---|---|---|
key |
string | the value’s name |
value |
string | the new value, nil when removed |
fromRegion |
string | the level that changed it |
Example
Section titled “Example”function OnClusterValueChange(key, value, fromRegion) if key == "tax" then Log("The tax is now " .. tostring(value)) endendSee also
Section titled “See also”SetClusterValue · GetClusterValue · the Regions group of the index
