$include: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
Line 9: Line 9:




[[Category:QC Commands]]
[[Category:QC Commands|I]]

Revision as of 11:57, 27 April 2008

The $include QC command is used to include the contents of an external .qc, or .qci file as though they were part of the parent file.

QC syntax example 1

  • If another model uses a very similar skeleton to the one you're compiling, simply copy its ragdoll.qc to your model’s folder.
  • Otherwise, copy $hl2/models/ragdoll.qc to your model’s folder.
  • Then, at the end of your model’s .QC file, add :
$include      "ragdoll.qc".