$pushd and $popd: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
No edit summary
No edit summary
Line 1: Line 1:
The [[QC command]]s '''<code>$pushd</code>''' and '''<code>$popd</code>''' 'push' and 'pop' directories to and from the QC's active folder. Multiple <code>$pushd</code> can be nested inside each other, so long as there are a corresponding number of <code>$popd</code>.
The [[QC command]]s '''$pushd''' and '''$popd''' 'push' and 'pop' directories to and from the QC's active folder. Multiple <code>$pushd</code> can be nested inside each other, so long as there are a corresponding number of <code>$popd</code>.


== Syntax ==
== Syntax ==

Revision as of 05:27, 2 January 2012

The QC commands $pushd and $popd 'push' and 'pop' directories to and from the QC's active folder. Multiple $pushd can be nested inside each other, so long as there are a corresponding number of $popd.

Syntax

$pushd <path>
...
$popd

Example

$modelname	"props\fan.mdl"
$cdmaterials	"models\props\"
$model	fan	"fan.smd"

$pushd	".\new animations\"
$sequence	rotate	"rotate.smd"
$popd

$sequence	idle	"idle.smd"