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

Box (console command): Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
No edit summary
(old enemy)
Line 1: Line 1:
[[File:Dods-box-command-example.jpg|thumb|{{File:Dods-box-command-example.jpg}}]]
[[File:Dods-box-command-example.jpg|thumb|{{File:Dods-box-command-example.jpg}}]]
{{This is a|console command|name=box}} It draws a box from red lines by specifying 2 corners' cordinates as parameter. It's axis aligned.
{{This is a|console command|name=box}} It draws a box from red lines by specifying 2 corners' cordinates as parameter. It's axis aligned.
{{note|Doesn't work in {{hls}}{{hl2}} (possibly not working in single player titles{{confirm}})}}
{{warning|Make sure your game is not paused when issuing this command or it won't work. (type unpause in console before writing the command)}}
{{tip|Clearable by command clear_debug_overlays}}
{{tip|Clearable by command clear_debug_overlays}}



Revision as of 01:26, 12 May 2025

Example use of box command in Day of Defeat: Source on map dod_kalt. box 1874 3236 75 1553 3383 197

box is a console command available in all Source Source games. It draws a box from red lines by specifying 2 corners' cordinates as parameter. It's axis aligned.

Warning.pngWarning:Make sure your game is not paused when issuing this command or it won't work. (type unpause in console before writing the command)
Tip.pngTip:Clearable by command clear_debug_overlays

Syntax: box x1 y1 z1 x2 y2 z2

Example: box 100 500 31 996 78 -655


See also