< Lua in SpringRTS < Callouts

Spring.GameOver()

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.

Parameters

[1] = allyTeamID1, -- optional
[2] = allyTeamID2, -- optional
..

Return values

None

Usage example



This article is issued from Wikibooks. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.