Lua in SpringRTS/Callins/UnitDestroyed()

Description
Runs when a unit gets destroyed. That can mean that either the unit got killed by an enemy or that it self destructed itself.

In unsynced mode the callin gets invoked whenever one of your units gets destroyed. In synced mode it invokes for any unit in the game.

Return values
integer unitID,

integer unitDefID,

integer unitTeam

Related
UnitCreated