Page 1 of 1

Bad team Id / your team id

Posted: 07 Sep 2008, 13:54
by SpliFF
why does this give the error "bad team id"?

local unitsOfSameType = Spring.GetTeamUnitsByDefs(Spring.MY_UNITS, unitDefID)

the wiki says Spring.MY_UNITS means your team

how do i get my team id?

Re: Bad team Id / your team id

Posted: 07 Sep 2008, 13:59
by SpliFF
never mind, KDR_11k says

Spring.GetLocalTeamID()

because it's a widget.

but unitTeam is defined anyway because it's in a call-in.