What it does
events.off takes name and callback.
Signature
events.off(name, callback)Arguments
namecallback
Example · generated
function start() { events.off('main', () => {});}events.off is called with values of the shape its signature asks for. The code sits in start(), which the engine calls once, when the entity spawns.