Jump to content

Lua in SpringRTS/Callins/UnitGiven()

From Wikibooks, open books for an open world

UnitGiven()

[edit | edit source]

Description

[edit | edit source]

Runs when a unit is given to a player. That can be either a unit given directly from an other player or a unit being given to the player by cheating.

Return values

[edit | edit source]

unitID, unitDefID, unitTeam, oldTeam

Usage example

[edit | edit source]


[edit | edit source]