Skip to content

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.

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
function OnClusterValueChange(key, value, fromRegion)
if key == "tax" then Log("The tax is now " .. tostring(value)) end
end

SetClusterValue · GetClusterValue · the Regions group of the index