nanos world API Reference Unofficial documentation
Static function Shared Fast

Entity.Unsubscribe

Unsubscribes all callbacks from this <a href='/docs/core-concepts/scripting/events-guide'>Event</a> in this Class within this Package, or only the callback passed

Syntax

Lua
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