On Destroy

STD Library
Tanto lado del cliente como del usuario
Disponible en PC y móvil
Dueño:
entity

Triggered before the current entity is destroyed.