AllowSpectateTeam( <team>, <spectate> )


Module: Client
MP Only

Summary:

Set whether the player can spectate the given team.



Call this on:

A Player



Example:

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.