Static function
Fast
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
Syntax
Events.SubscribeRemote(event_name, callback)
Parameters
| Name | Type | Default | Description |
|---|---|---|---|
event_name
|
string | — | The Event Name to subscribe |
callback
|
function | — | The callback function to execute |
Returns
- function the subscribed callback itself