$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 (apparently launch has this, according to old edits) |
SirYodaJedi (talk | contribs) m (→Example: cdtexture, not cdtextures) |
||
Line 16: | Line 16: | ||
'''$cd "."''' | '''$cd "."''' | ||
[[$modelname]] "weapons/shell.mdl" | [[$modelname]] "weapons/shell.mdl" | ||
[[$ | [[$cdtexture]] "models/weapons/" | ||
[[$body]] "Shell" "shell.smd" | [[$body]] "Shell" "shell.smd" | ||
[[$sequence]] "idle" "shell.smd" | [[$sequence]] "idle" "shell.smd" |
Revision as of 13:34, 26 June 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.
Example
$cd "." $modelname "weapons/shell.mdl" $cdtexture "models/weapons/" $body "Shell" "shell.smd" $sequence "idle" "shell.smd"