Index

:Destroyed

Description

“:Destroyed” is called when a unit with this script is destroyed.

Clarification note:
When a unit is destroyed via DestroyUnit(self true true true), :Destroyed will still trigger.

Example

:Destroyed
   "I died" Print