Page 1 of 1

Get a team's alliance ID?

Posted: 07 Jun 2011, 20:42
by Pithikos
I want to get the the allyTeamID (the alliance ID) from a given team. So far I tryied to use the Spring.GetTeamInfo(teamID) but it returns always nil.
Code:

Code: Select all

local _, _, _, _, side, allyTeam=Spring.GetTeamInfo(attackerID)	
attackerID is an existing teamID, so already checked.

Re: Get a team's alliance ID?

Posted: 08 Jun 2011, 00:33
by knorke
attackerID is an existing teamID, so already checked.
are you sure it is a teamID and not a unitID?

Re: Get a team's alliance ID?

Posted: 08 Jun 2011, 02:47
by Pithikos
knorke wrote:
attackerID is an existing teamID, so already checked.
are you sure it is a teamID and not a unitID?
Ok I fixed that. I used attackerID instead of attackerTeam :lol: