team.SetUp
From GMod Wiki
Revision as of 23:40, 9 December 2009 by Unrealomega (Talk | contribs)
| Function | |
| Syntax |
team.SetUp( Integer TeamIndex, String TeamName, Color TeamColor, Boolean Joinable ) Where is this used? |
| Description: | |
| Creates a new team | |
| Returns: | nil |
| Part of Library: | Team |
| Realm: |
|
| BBCode Link: | [b][url=http://wiki.garrysmod.com/?title=Team.SetUp]Team.SetUp [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b] |
Example
| Description | Create team 4 with name "Guests" and color blue |
|---|---|
| Used on | |
| Code | team.SetUp (4, "Guests", Color (0, 0, 255, 255)) |
| Output | N/A |
Additional Notes
- You need to set the team up on both the client and the server. This would ideally be achieved by defining your team-setup's in your gamemode's shared file.