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?
Bad team Id / your team id
Moderator: Moderators
Re: Bad team Id / your team id
never mind, KDR_11k says
Spring.GetLocalTeamID()
because it's a widget.
but unitTeam is defined anyway because it's in a call-in.
Spring.GetLocalTeamID()
because it's a widget.
but unitTeam is defined anyway because it's in a call-in.