Hot to SetGenericTeamId(FGenericTeamId(...)) to AICharacter in C++?

I have two bots. They must be enemies. They have one AI controller. How can I set them a command using the function SetGenericTeamId(FGenericTeamId(…))?

I will be glad to any answer that can help me!)

Hi, in my game i just overwrite GetGenericTeamId() to return the team number…

FGenericTeamId AMyAIController::GetGenericTeamId() const
	return FGenericTeamId(TeamNumber);

TeamNumber is public variable of AMyAIController, will be set when i spawn my bot.