GSC reference › Built-in
CameraSetLookAt()
Built-in (engine)
Server
Player Called on: player
Sets the focus point of the script camera.
Signature
<player> CameraSetLookAt([position])
Called on an entity: player CameraSetLookAt(...)
Parameters
| Name | Required? | Details |
|---|---|---|
| position | Optional | Either an entity to focus the camera on or a vector defining the camera's focus point |
Example (from Treyarch's docs)
get_players()[0] CameraSetLookAt( ( 1100, -23, 644 ) )get_players()[0] CameraSetLookAt( my_entity )
Real uses in BO3's scripts
Called 14 times in the decompiled scripts. A few, zombies first:
- scripts/zm/_zm_game_module.gsc, line 329
self camerasetlookat(); - scripts/zm/zm_moon_utility.gsc, line 721
player camerasetlookat(); - scripts/zm/zm_tomb_ee_main.gsc, line 542
player camerasetlookat(); - scripts/mp/killstreaks/_dart.gsc, line 815
owner camerasetlookat(dart.origin); - scripts/mp/killstreaks/_dogs.gsc, line 1147
player camerasetlookat(dog);
Related built-ins
- SetLookAtEnt()Set the entity this vehicle will orient towards.
- UseTriggerRequireLookAt()Set the require look at flag for the trigger
- TableLookupFindCoreAsset()Find core asset index for a stringtable
- SetLookAtOrigin()Set the origin this vehicle will orient towards.
- UseTriggerRequireLookToward()Set the require look along flag for the trigger
- 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.
- SetWeaponAmmoClip()Set the weapon's ammo
- SetOrigin()Set the player's origin
- SetPlayerAngles()Set the player's view angles
- SetWeaponAmmoStock()Set the weapon's ammo
- SetClientUIVisibilityFlag()Sets a HUD visibility flag only on this client
- SetPerk()Give the specified perk
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).