nanos world API Reference Unofficial documentation
Event Shared

Entity.ValueChange

Triggered when an Entity has a value changed with <code>:SetValue()</code>

Syntax

Lua
Entity.Subscribe("ValueChange", function(self, key, value)
    -- il tuo codice
end)

Arguments

Name Type Default Description
self Entity — The Entity that just had a value changed
key string — The key used
value any — The value that was set