$cd (GoldSrc): Difference between revisions
Jump to navigation
Jump to search
Important:(in all games since
) For
Source, starting directory is inferred to be QC file location, with $pushd and $popd being used to change the directory instead.
SirYodaJedi (talk | contribs) m (→Example) |
SirYodaJedi (talk | contribs) m (→Example) |
||
Line 18: | Line 18: | ||
[[$modelname]] "shell.mdl" | [[$modelname]] "shell.mdl" | ||
[[$cdtexture]] "." // look for textures in same folder as QC file | [[$cdtexture]] "." // look for textures in same folder as QC file | ||
[[$body]] "Shell" "shell | [[$body]] "Shell" "shell" | ||
[[$sequence]] "idle" "shell | [[$sequence]] "idle" "shell" | ||
}} | }} | ||
[[Category:QC Commands|c]] | [[Category:QC Commands|c]] |
Revision as of 17:29, 15 November 2023
(only in )(not in
(except'in
))
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.