$pushd and $popd
Jump to navigation
Jump to search
Used to temporarly change the curren working directory for the script.
Description
$pushd (directory)
The default working directory will be the folder of the .qc file. The $pushd must be meat with a $popd. Multiple $pushd can be nested in side eacher othere.
Parameters
- (directory) full or relative path on the file system. The path should be douple quoted.
Example
$modelname "props/fan.mdl"
$cdmaterials "models/props/"
$model "Fan" "fan.smd"
$pushd ".\new animations\"
$sequence "rotate" "rotate.smd"
$popd
$sequence "idle" "idle.smd"