team.SetClass

From Garry's Mod
Jump to: navigation, search
 team.SetClass( )

Contents

Description

Sets valid classes for use by a team. Classes can be created using player_manager.RegisterClass

Arguments

number index

Index of the team

Arguments

any classes

A class ID or table of class IDs

Examples

Example

Allows TEAM_RED to access the "Soldier" class

team.SetClass( TEAM_RED, {"Soldier"} )


Personal tools
Navigation