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

From COD Modding & Mapping Wiki
Share/Save/Bookmark
Revision as of 07:01, 31 July 2009 by CoDEmanX (talk | contribs) (New page: {{Function |Version=4 |Name=AllowSpectateTeam( <team>, <spectate> ) |Module=Client |Available=MP Only |Summary=Set whether the player can spectate the given team. |Call_on=A P...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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