Drawcross: Difference between revisions
Jump to navigation
Jump to search

Tip:clear_debug_overlays command doesn't clear these lines but it's possible to hide them by issuing
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
{{LanguageBar|title = {{mono|drawcross / drawline}}}} | {{LanguageBar|title = {{mono|drawcross / drawline}}}} | ||
[[File:Drawcross-example-hls.jpg|right|thumb|Drawcross used to show locations of {{ent|world_items|engine=source}} in {{hls|2}}.]] | |||
{{This is a|console command|name=drawcross|name1=drawline|notitlechange=1}} Creates lines or crosses. Cross consists of 4 lines and there are 20 lines possible to be drawn at once (i.e. 5 crosses). The lines they draw are red if intersecting solid geometry otherwise white. | {{This is a|console command|name=drawcross|name1=drawline|notitlechange=1}} Creates lines or crosses. Cross consists of 4 lines and there are 20 lines possible to be drawn at once (i.e. 5 crosses). The lines they draw are red if intersecting solid geometry otherwise white. | ||
Line 7: | Line 8: | ||
</pre>}} | </pre>}} | ||
=== Examples === | === Examples === |
Revision as of 01:15, 12 May 2025


drawcross
and drawline
are console commands available in all Source games. Creates lines or crosses. Cross consists of 4 lines and there are 20 lines possible to be drawn at once (i.e. 5 crosses). The lines they draw are red if intersecting solid geometry otherwise white.

drawline 0 0 0 0 0 0
20 times. It's possible to alias it as follows for quick way to clear them. clear_debug_overlays is autocomplete by console and adding 2 at the end is fast.
alias e "drawline 0 0 0 0 0 0"; alias clear_debug_overlays2 "e;e;e;e;e;e;e;e;e;e;e;e;e;e;e;e;e;e;e;e"
Examples
drawcross 152 366 487
drawline 100 200 130 500 -650 142
See also
- box x1 y1 z1 x2 y2 z2 - different overlay type clearable by clear_debug_overlays