$cd (GoldSrc): Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
mNo edit summary
Line 14: Line 14:
'''$cd ".\"'''<br />
'''$cd ".\"'''<br />
$modelname "weapons/shell.mdl"<br />
$modelname "weapons/shell.mdl"<br />
$cdmaterials "models/player"<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 09:37, 13 October 2007

Used to change the curren working directory for the script

Description

$cd (directory)

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

Parameters

  • (directory) full or relative path on the file system. The path should be douple quoted.

Example

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