$cd (GoldSrc)

From Valve Developer Community
Revision as of 19:45, 14 October 2007 by Wolf (talk | contribs)
Jump to navigation Jump to search

Used to set the current working directory for the qc script.

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"