Team based Voice chat?
What would be the best way to go about having team based voice chat? For example, there are 2 teams, with x number of players on each team, and you can only hear your team and not the other team ?
Here is an excerpt from
If you are implementing teams in your game, you can add "team chat" easily as follows:
- Assign a group number per team.
- A player should subscribe to the audio group of the team he/she belongs to.
- Players of the same team can talk to each other by setting the
to the team's audio group number.
the same documentation page
for more information.
You can also take a look at the source code of the Push To Talk demo.