GSC reference › Built-in
IsTestClient()
Built-in (engine)
Server
Called on: player
Returns true if the player is a test client (Does not have a remote user).
Signature
<player> IsTestClient()
Called on an entity: player IsTestClient(...)
Returns
Returns true if the player is a test client (Does not have a remote user).
Example (from Treyarch's docs)
if( self IsTestClient() )
Real uses in BO3's scripts
Called 11 times in the decompiled scripts. A few, zombies first:
- scripts/zm/_zm_audio.gsc, line 852
else if(!self istestclient()) - scripts/shared/bots/_bot.gsc, line 233
if(!player istestclient()) - scripts/mp/bots/_bot_loadout.gsc, line 395
if(!player istestclient()) - scripts/mp/gametypes/_globallogic.gsc, line 4183
if(player istestclient() && accepttestclient == 0) - scripts/mp/gametypes/_globallogic_player.gsc, line 893
if(self istestclient())
Related built-ins
- AddTestClient()Adds a test client to the map and returns a reference to that client.
- NewClientHudElem()Create a new hud element for a particular client
- RegisterClientField()Register a client field.
- SetClientUIVisibilityFlag()Sets a HUD visibility flag only on this client
- GetLocalClientNumber()Returns the local client number.
- SetClientNameMode()Alters the way that the player name is updated, to prevent cheating by spectators altering their name to communicate with active players.
- SetClientThirdPerson()Set the client to be third person
- SetClientScriptMainMenu()Sets g_scriptMainMenu dvar only on this client
- IsLocalClientDriver()Returns the driver of the vehicle.
- CodeSetClientField()Sets the value for a given client field.
- GetClientTime()Gets the current client time in milliseconds
- ClientHasSnapshot()Returns true if client has recieved a snapshot from the server
New to GSC?
Start with the basics, or paste a compile error to get the fix.
Built-in descriptions, parameters and examples come from Treyarch's BO3 mod tools docs. Usage links point at shiversoftdev/t7-source (decompiled BO3 scripts).