Riferimento API di nanos world Documentazione italiana non ufficiale
Documentazione ufficiale
Funzione Condiviso 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

Lua
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