$include

From Valve Developer Community
Revision as of 04:24, 2 January 2012 by Dmx6 (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

The $include QC command 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.png Note: The new QC is always loaded relative to the current QC's directory (To do: or is it the root's?) - it is not affected by $pushd!
Tip.png Tip: 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"