$cd (GoldSrc): Difference between revisions
Jump to navigation
Jump to search
Important: 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 15: | Line 15: | ||
==Example== | ==Example== | ||
{{codeblock|lang=qc|src=shell.qc|//brass shell model for GoldSrc | {{codeblock|lang=qc|src=shell.qc|//brass shell model for GoldSrc | ||
'''$cd "."''' | '''$cd "."''' //use same directory as QC file | ||
[[$modelname]] "shell.mdl" | [[$modelname]] "shell.mdl" | ||
[[$cdtexture]] "models/weapons/shell" | [[$cdtexture]] "models/weapons/shell" |
Revision as of 11:40, 3 July 2023
(only in )(also in
)(not 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.