Riferimento API di nanos world Documentazione italiana non ufficiale
Documentazione ufficiale
Funzione statica Condiviso Veloce

Events.SubscribeRemote

Listens for a network custom Event<br/>If on the Server, it catches <code>Events.CallRemote()</code> from Clients (receiving the sender 'Player' as the first argument)<br/>If on the Client, it catches Server broadcasts and remote calls

Non ancora tradotto

Sintassi

Lua
Events.SubscribeRemote(event_name, callback)

Parametri

Nome Tipo Predefinito Descrizione
event_name string — The Event Name to subscribe
callback function — The callback function to execute

Valore restituito

  • function the subscribed callback itself