$include: Difference between revisions
Jump to navigation
Jump to search
Note:The new QC is always loaded relative to the current QC's directory (
Tip:Compiled MDL files can also be included with $includemodel.
No edit summary |
Thunder4ik (talk | contribs) m (clean up) |
||
Line 1: | Line 1: | ||
The | The '''$include''' [[QC command]] command is used to insert the contents of another <code>.qc</code> (or <code>.qci</code>, for clarity) file as though they were part of the parent file. | ||
{{note|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]]!}} | {{note|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]]!}} | ||
Line 9: | Line 9: | ||
When the included file is in the same folder as the current one: | When the included file is in the same folder as the current one: | ||
$include "ragdoll.qci" | |||
[[Category:QC Commands|I]] | [[Category:QC Commands|I]] |
Revision as of 01:35, 6 January 2024
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.

Todo: or is it the root's?
) - it is not affected by $pushd!
Example
When the included file is in the same folder as the current one:
$include "ragdoll.qci"