I'm thinking of adding a feature to my map, namely that if a team is in the possession of a certain alien unit, then other aliens are more likely to join that team (maybe depending on distance to it). Would this function do it?
Code:
Spring.GetTeamUnitsByDefs
( number teamID, number unitDefID | { number unitDefID1, ... } ) -> nil | unitTable = { [1] = number unitID, etc... }
Do I supply the team id and unitDefID and then get just a number in return? I'm sorry but the description is a bit unclear.
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?
Users browsing this forum: No registered users and 1 guest
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot post attachments in this forum