This article's documentation is for anything that uses the Source engine. Click here for more information.

Cast ray: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(Created page with "{{LanguageBar|title = {{mono|cast_ray / cast_hull}}}} {{This is a|console command|name=cast_ray|name1=cast_hull}} Casts a ray or hull and shows what it hit in console. {{warning|Make sure your game is not paused when issuing these commands or the overlay for it won't show up. (type unpause in console before writing the command or {{cmd|bind}} it to a button <code>bind e cast_ray</code>)}} == See also == * {{cmd|box (console command)|alt=box}} * {{cmd|drawcross|alt=draw...")
 
No edit summary
Line 7: Line 7:
* {{cmd|box (console command)|alt=box}}
* {{cmd|box (console command)|alt=box}}
* {{cmd|drawcross|alt=drawcross / drawline}}
* {{cmd|drawcross|alt=drawcross / drawline}}
== External links ==
* [https://github.com/ValveSoftware/source-sdk-2013/blob/61ca3f725417d5b479824cded09eaab1909151be/src/game/server/client.cpp#L442-L464 cast_hull definition]
* [https://github.com/ValveSoftware/source-sdk-2013/blob/61ca3f725417d5b479824cded09eaab1909151be/src/game/server/client.cpp#L420-L440 cast_ray definition]

Revision as of 01:33, 12 May 2025

English (en)Translate (Translate)

cast_ray and cast_hull are console commands available in all Source Source games. Casts a ray or hull and shows what it hit in console.

Warning.pngWarning:Make sure your game is not paused when issuing these commands or the overlay for it won't show up. (type unpause in console before writing the command or bind it to a button bind e cast_ray)

See also

External links