Blockland Forums > Modification Help
Minigame Functions - Testing TeamName
(1/2) > >>
Nexus:
How do I test the team a client is in during a minigame?
My guess is %client.teamName, but I am getting weird results when I rest it.
Destiny/Zack0Wack0:
With TDM? Or what?
Nexus:
Just a regular minigame.  No special addons.
Space Guy:
Clients do not have a team in the default game - "Team Chat" will instead send a message to all people in the same minigame as you. (This + Invite Only makes a private chat possible)

The way to find a client's team for the Team Deathmatch mod is %client.tdmTeam, a number from -1 to 5. The name of the team is %client.minigame.teamName[%client.tdmTeam].

If making your own mod, do not use %client.team as a variable - this interferes with default global chat and will make it so other people can't hear you at all.
Nexus:
Alright, I didn't know default minigames had no teams.  So, I looked in the TDM code, and I am pretty sure the variable I'm looking for is %client.tdmteam.  I assume if they are in the first team, then the variable %client.tdmteam is 1, second would be 2, and so on.  Unless someone tells me otherwise, I guess this problem is solved.
Navigation
Message Index
Next page

Go to full version