$include

From Valve Developer Community
Revision as of 05:59, 2 August 2010 by TomEdwards (talk | contribs)
Jump to navigation Jump to search

The $include command is used to insert the contents of another .qc (or .qci, for clarity) file as though they were part of the parent file.

Note.pngNote:The new QC is always loaded relative to the current QC's directory (
Todo: or is it the root's?
) - it is not affected by $pushd!
Tip.pngTip:Compiled MDL files can also be included with $includemodel.

Example

When the included file is in the same folder as the current one:

$include "ragdoll.qci"