<decides> issue. Setting 2 Teams of Random Players?

Working on a Prop Hunt map. There are 2 Teams, Props and Hunters.
At the beginning of each round, I want to pick completely random players to be hunters, and everyone else is on the Prop Team.

BalanceTeams

I get the players in the game, and then the teams.
I set the Teams = the number of players I want, however I need to use decides…

The issue is I cannot call BalanceTeams() inside of OnBegin, so how would I call it?
Do I need to restructure my code to error check properly instead of using decides?

OnBegin

1 Like

Hi.
Wouldn’t you just enclose those calls within IF statements, so there’s rollback?

for(I := 0…MaximumProp-1):
if (TeamCollection.AddToTeam[AllPlayers[i], MaybeProps?]){}

2 Likes

Wow! Thanks. Still learning this language one step at a time.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.