Funzione
Veloce
Entity:SetValue
Sets a value in this Entity, which can be accessed by any package (optionally sync on clients if called from server)<br><br>Please refer to <a href="/docs/core-concepts/scripting/entity-values">Entity Values</a> for more information
Non ancora tradotto
Sintassi
my_entity:SetValue(key, value, sync_on_clients = false)
Parametri
| Nome | Tipo | Predefinito | Descrizione |
|---|---|---|---|
key
|
string | — | — |
value
|
any | — | — |
sync_on_clients
facoltativo
|
boolean | false |
Parametro lato server: se attivo, sincronizza questo valore con tutti i client |