Garry's Mod Wiki

team.GetSpawnPoints

  table team.GetSpawnPoints( number index )

Description

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

Arguments

1 number index
Index of the team

Returns

1 table
Valid spawnpoint entities

Example

Prints a random spawnpoint entity for TEAM_RED

Output: Spawnpoint Entity