$pushd and $popd: Difference between revisions
Jump to navigation
Jump to search
m (increased quality) |
mNo edit summary |
||
Line 3: | Line 3: | ||
==Description== | ==Description== | ||
$pushd ".\path\to\files\" | $pushd ".\path\to\files\" | ||
The default working directory is the folder of the .qc file. The $pushd must be met with a [[$popd]]. Multiple $pushd can be nested inside each other. | The default working directory is the folder of the .qc file. The $pushd must be met with a [[$popd]]. Multiple $pushd can be nested inside each other. |
Revision as of 20:57, 13 October 2007
Used to set the current working directory in a qc script.
Description
$pushd ".\path\to\files\"
The default working directory is the folder of the .qc file. The $pushd must be met with a $popd. Multiple $pushd can be nested inside each other.
Parameters
- The path should be a full or relative path on the file system.
Example
$modelname "props/fan.mdl" $cdmaterials "models/props/" $model "Fan" "fan.smd" $pushd ".\new animations\" $sequence "rotate" "rotate.smd" $popd $sequence "idle" "idle.smd"