$cd (GoldSrc): Difference between revisions
Jump to navigation
Jump to search
Important:Does not exist in
Source; starting directory is inferred to be QC file location, with $pushd and $popd being used to change the directory instead.
No edit summary |
SirYodaJedi (talk | contribs) (still is used in goldsrc) |
||
Line 1: | Line 1: | ||
{{ | {{goldsrc topicon}} | ||
{{goldsrc|only}} Used to set the current working directory for the QC script. | |||
[[Category:QC Commands | |||
{{modernImportant|Does not exist in {{src|4.1}}; starting directory is inferred to be QC file location, with [[$pushd]] and [[$popd]] being used to change the directory instead.}} | |||
==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" | |||
[[$cdtextures]] "models/weapons/" | |||
[[$body]] "Shell" "shell.smd" | |||
[[$sequence]] "idle" "shell.smd" | |||
[[Category:QC Commands]] |
Revision as of 13:24, 26 June 2023
(only 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.
Example
$cd "." $modelname "weapons/shell.mdl" $cdtextures "models/weapons/" $body "Shell" "shell.smd" $sequence "idle" "shell.smd"