cast_ray Command

Explore usage, syntax, and examples for the cast_ray CS2 developer console command.

cast_ray

CS2 and CSGO

Command

cast_ray

Tests collision detection by spawning a short ray from your character's position towards their viewpoint.

sv_cheats Required

Yes

Client or Server Command

Server

cast_ray Generator

Command

cast_ray

Ready to Copy

Set the options below to auto-generate your command. When everything looks good, click the Copy button and paste it into your in-game console.

cast_ray Examples

Command

cast_ray

Creates a visible ray from where you stand in the direction you are looking. You can generate multiple rays simultaneously, but they will fade over time.