Funzione statica
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
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