Progetto H — Riferimento API Documentazione & Scripting
Evento Condiviso

Entity.ValueChange

Scatenato quando su un'entità viene cambiato un valore con <code>:SetValue()</code>
Mostra l'originale in inglese
Triggered when an Entity has a value changed with <code>:SetValue()</code>

Sintassi

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

Argomenti

Nome Tipo Predefinito Descrizione
self Entity L'entità su cui è appena cambiato un valore
key string La chiave usata
value any Il valore impostato