onDestroy
This event is triggered when the script is destroyed.
Example
engine.events.on('onDestroy', () => {
console.log('Script destroyed');
});
Available on: Client Server
This event is triggered when the script is destroyed.
engine.events.on('onDestroy', () => {
console.log('Script destroyed');
});
Available on: Client Server