Hello, i was trying to get the Team Number from an agent, but its not working right, does anyone know how to get the team number right?
GetTeam(Agent:agent):int={
if(TeamNumber := TeamMap[Agent]):
return TeamNumber
else:
return -1
}
var TeamMap:[agent]int = map{}
OnTheBossDamage(Agent : agent): void=
if (GetTeam(Agent) = 2):
Print("No")
else BossBar.TakeDamage(20.0)