Static function
Fast
Entity.SubscribeRemote
Subscribes to a custom event called from server
Syntax
Entity.SubscribeRemote(event_name, callback)
Parameters
| Name | Type | Default | Description |
|---|---|---|---|
event_name
|
string | — | Name of the event to subscribe to |
callback
|
function | — | Function to call when the event is triggered |
Returns
- function Callback that was passed (useful for unsubscribing later if your callback is an anonymous function)