GSC reference › Built-in
SetClientCompass()
Built-in (engine)
Server
Player Called on: player
Sets compass dvar only on this client
Signature
<player> SetClientCompass(<value>)
Called on an entity: player SetClientCompass(...)
Parameters
| Name | Required? | Details |
|---|---|---|
| value | Required | The value to set |
Example (from Treyarch's docs)
self SetClientCompass( 0 )
Real uses in BO3's scripts
Called 1 time in the decompiled scripts. A few, zombies first:
- scripts/zm/_zm.gsc, line 1929
self setclientcompass(0);
Related built-ins
- SetClientUIVisibilityFlag()Sets a HUD visibility flag only on this client
- SetClientThirdPerson()Set the client to be third person
- SetClientScriptMainMenu()Sets g_scriptMainMenu dvar only on this client
- SetClientCGObjectiveText()Sets the objective text only on this client
- SetClientMiniScoreboardHide()Sets miniscoreboardhide dvar only on this client
- SetClientThirdPersonAngle()Sets cg_thirdPerson dvar only on this client
- SetClientDrawTalk()Sets cg_drawTalk dvar only on this client
- SetClientNumLives()Sets scr_numLives dvar only on this client
- SetClientPlayerSprintTime()Sets player_sprintTime dvar only on this client
- SetCurrentSpectatorClient()Set the given client as a spectator
- SetClientHUDHardcore()Sets ui_hud_hardcore dvar only on this client
- SetClientPlayerPushAmount()Sets playerPushAmount dvar only on this client
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).