$include
Jump to navigation
Jump to search
Note:The new QC is always loaded relative to the current QC's directory - it is not affected by $pushd or $cd!
Tip:Compiled MDL files can also be included with $includemodel.
$include
is a QC command available in all Source games. It's used to insert the contents of another
.qc
(or .qci
, for clarity) file as though they were part of the parent file.
![Note.png](/w/images/thumb/c/cc/Note.png/10px-Note.png)
![Tip.png](/w/images/thumb/4/45/Tip.png/9px-Tip.png)
Example
When the included file is in the same folder as the current one:
$include "ragdoll.qci"