$cd (GoldSrc): Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
No edit summary
mNo edit summary
Line 16: Line 16:
  $model "Shell" "shell.smd"
  $model "Shell" "shell.smd"
  $sequence "idle" "shell.smd"
  $sequence "idle" "shell.smd"
[[Category:QC Commands]]

Revision as of 18:24, 7 November 2007

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"