GSC reference › Built-in

CamAnimScripted()

Built-in (engine) Server

Plays the camera script on a player.

Signature

CamAnimScripted(<player>, <cam_anim>, <start_time>, <align_origin>, <align_angles>, [lerp_duration], [camera_name], [ignoreProcessingInitialNoteTracks])

Parameters

NameRequired?Details
playerRequired The player to play animation on
cam_animRequired The animation to play
start_timeRequired The start time of the animation
align_originRequired The origin to align to
align_anglesRequired The angles to align to
lerp_durationOptional The lerp duration
camera_nameOptional The camera name
ignoreProcessingInitialNoteTracksOptional Ignores processing the initial notetracks if the camera time starts earlier

Example (from Treyarch's docs)

CamAnimScripted( player, "proto_melee_cam", gettime(), origin, angles )

Real uses in BO3's scripts

Called 2 times in the decompiled scripts. A few, zombies first:

Related built-ins

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).