team.GetSpawnPoints

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

Contents

Description

Returns a table of valid spawnpoint entities the team can use. These are set with team.SetSpawnPoint.

Arguments

number index

Index of the team

Returns

table

Valid spawnpoint entities

Examples

Example

Prints a random spawnpoint entity for TEAM_RED

print(table.Random(team.GetSpawnPoints(TEAM_RED)))

Output:

Spawnpoint Entity
Personal tools
Navigation