Lua in SpringRTS/Callouts/Spring.GameOver

From Wikibooks, open books for an open world
< Lua in SpringRTS‎ | Callouts
Jump to: navigation, search

Spring.GameOver()[edit]

Description[edit]

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[edit]

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

Return values[edit]

None

Usage example[edit]


Related[edit]