$cd (GoldSrc): Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
mNo edit summary
(doesn't exist any more)
Line 1: Line 1:
Used to set the current working directory for the qc script.
The [[QC command]] <code>'''$cd'''</code> used to change the location at which SMD files and <code>[[$include]]</code>d QC files are looked for. '''It is no longer accepted by either the Ep1 or Orange Box build of [[studiomdl]].'''
 
==Description==
 
$cd "path/to/files/"
 
The default working directory will be the folder of the .qc file.
 
==Parameters==
* The path should be a full or relative path on the file system.
 
==Example==
'''$cd ".\"'''
$modelname "weapons/shell.mdl"
$cdmaterials "models/weapons/"
$model "Shell" "shell.smd"
$sequence "idle" "shell.smd"
 
 
 
[[Category:QC Commands]]

Revision as of 01:54, 26 April 2008

The QC command $cd used to change the location at which SMD files and $included QC files are looked for. It is no longer accepted by either the Ep1 or Orange Box build of studiomdl.