Function
Fast
Entity:Unsubscribe
Unsubscribes all callbacks from this <a href='/docs/core-concepts/scripting/events-guide'>Event</a> in this Entity within this Package, or only the callback passed
Syntax
my_entity:Unsubscribe(event_name, callback = nil)
Parameters
| Name | Type | Default | Description |
|---|---|---|---|
event_name
|
string | — | Name of the event to unsubscribe from |
callback
optional
|
function | nil |
Optional callback to unsubscribe |