$pushd and $popd: Difference between revisions
Jump to navigation
Jump to search
m (minor cleanup) |
TomEdwards (talk | contribs) 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>. | |||
== Syntax == | == Syntax == | ||
$pushd | $pushd <path> | ||
... | |||
$popd | |||
== Example == | |||
$modelname "props\fan.mdl" | |||
$cdmaterials "models\props\" | |||
$model fan "fan.smd" | |||
$modelname "props | |||
$cdmaterials "models | '''$pushd''' ".\new animations\" | ||
$model | $sequence rotate "rotate.smd" | ||
'''$pushd ".\new animations\" | '''$popd''' | ||
$sequence | |||
$popd | $sequence idle "idle.smd" | ||
$sequence | |||
[[Category:QC Commands|pushd]] | [[Category:QC Commands|pushd]] |
Revision as of 05:47, 9 January 2009
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"