Code: Select all
Spring.GetTeamUnitsByDefs
( number teamID, number unitDefID | { number unitDefID1, ... } )
-> nil | unitTable = { [1] = number unitID, etc... }
The other way would be to store this information in a table when this other unit is created, would that be faster and more efficient than to lookup the value dynamically when a unit is created from a meteorite? Or should I try to minimise the amount of static variables in a gadget instead?
Sorry if this is a stupid question.