Jump to content

outputChatBox to a team


JohnDoe91286

Recommended Posts

Could anybody help point out or show an example of how to outputChatBox something to everybody in a certain team? Thanks.

outputChatBox is one of those functions which works like it should with element tree. I'm not 100% sure if setPlayerTeam changes their parent as well but if it does, you should be able to send message to team element, for instance:

outputChatBox( "hello blue team", getTeamFromName( "Blue" ) )

If that doesn't work, you can set player's parent to team element and then it should work but if that doesn't work, the worst case is to getPlayersInTeam and loop through them.

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...