GSC reference › Built-in
CameraActivate()
Built-in (engine)
Server
Player Called on: player
Turns the script camera on or off.
Signature
<player> CameraActivate(<active>)
Called on an entity: player CameraActivate(...)
Parameters
| Name | Required? | Details |
|---|---|---|
| active | Required | True to activate the camera, false to turn it off and return to 1st person view |
Example (from Treyarch's docs)
get_players()[0] CameraActivate( true )
Real uses in BO3's scripts
Called 21 times in the decompiled scripts. A few, zombies first:
- scripts/zm/_zm.gsc, line 2016
self cameraactivate(0); - scripts/zm/_zm_game_module.gsc, line 330
self cameraactivate(1); - scripts/zm/zm_moon_utility.gsc, line 722
player cameraactivate(1); - scripts/zm/zm_tomb_ee_main.gsc, line 543
player cameraactivate(1); - scripts/shared/dev_shared.gsc, line 60
util::gethostplayer() cameraactivate(0);
Related built-ins
- GadgetDeactivate()Turns gadget off in slot.
- GadgetSetActivateTime()Set the activation time of this gadget.
- GadgetActivate()Turns gadget on in slot.
- ActivateClientRadiantExploder()Activates a client side radiant exploder
- ActivateClientExploder()Activates a client side exploderThis is sent as a reliable command, and will not work with killcam or demos.
- DeactivateClientExploder()Deactivates a client side exploder
- DeactivateClientRadiantExploder()Deactivates a client side radiant exploder
- GetCurrentWeapon()Gets the current player weapon
- SetLUIMenuData()Sets a data value for a given lui menu, the data name has to be precached and the value as well, if its a string.
- GiveWeapon()Give a weapon to the player
- HasPerk()Test if player has a perk
- HasWeapon()Returns true if the player has the given weapon
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).