Call of Duty 4: Scripting Reference - Client::AllowSpectateTeam

From COD Modding & Mapping Wiki
Share/Save/Bookmark
Jump to: navigation, search


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 arguments:

  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.


Optional arguments:

none


Notes:

none