AllowSpectateTeam( <team>, <spectate> )

Module: Client
MP Only


Set whether the player can spectate the given team.

Call this on:

A Player


self AllowSpectateTeam( "axis", true );

Required Args:

  • 1 : <team> A string description of the team. Valid teams are 'axis', 'allies', 'none' or 'freelook'
  • 2 : <spectate> A boolean value describing whether this player can spectate on this team.