$cd (GoldSrc): Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
mNo edit summary
m (increased quality)
Line 1: Line 1:
Used to change the curren working directory for the script
Used to set the current working directory for the qc script.


==Description==
==Description==


$cd (directory)
$cd "path/to/files"


The default working directory will be the folder of the .qc file.
The default working directory will be the folder of the .qc file.


==Parameters==
==Parameters==
* (directory) full or relative path on the file system. The path should be douple quoted.
* The path should be a full or relative path on the file system.


==Example==
==Example==
''//this has no effect as it changes to the current working directory with a relative path''<br />
'''$cd ".\"'''
'''$cd ".\"'''<br />
$modelname "weapons/shell.mdl"
$modelname "weapons/shell.mdl"<br />
$cdmaterials "models/weapons/"<br />
$cdmaterials "models/weapons/"<br />
$model "Shell" "shell.smd"<br />
$model "Shell" "shell.smd"<br />
$sequence "idle" "shell.smd"
$sequence "idle" "shell.smd"

Revision as of 20:53, 13 October 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"