Skip to content

CustomPlayerCamera

cs_script API / CustomPlayerCamera

Exported class in cs_script/point_script. experimental

Configuration of a player's view position and angles.
There is at most one of these per CSPlayerPawn, created on demand when CSPlayerPawn.GetCustomCamera is called.

Experimental: This feature is experimental and may experience breaking changes. Please send feedback to CSGOTeamFeedback@valvesoftware.com with "cs_script Feedback" in the subject line.

  • Extends Entity; inherited members are on those pages.

CS2 build 27045800 · Steam date 2026-11-30 · platform windows-x86_64 · schema format 2.2 · engine class CCSCustomPlayerCamera

Members

GetPlayer

GetPlayer(): CSPlayerPawn

GetMode

GetMode(): CustomCameraMode

SetMode

SetMode(mode: CustomCameraMode): void

SetFollowConfig

SetFollowConfig(followConfig: CameraFollowConfig): void