Novelty scripting reference > Scripted events > OnDestroy


This event is called when the object is destroyed by either a script call or at the end of the page.

Implicit arguments

Object@ sender
Handle to the associated object.


event MyEvent.OnDestroy
	// Print object's name to the console 
	Print( + " was destroyed");

Back to top