$pushd and $popd

From Valve Developer Community
Revision as of 10:00, 13 October 2007 by Wolf (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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"