$popd: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
No edit summary
m (increased quality)
Line 1: Line 1:
This will set the working directory back to what it was befor the [[$pushd]] command was issued.
This will revert the working directory to what it was before the [[$pushd]] command was issued.


==Description==
==Description==
Line 6: Line 6:


==Example==
==Example==
$modelname "props/fan.mdl"<br />
$modelname "props/fan.mdl"
$cdmaterials "models/props/"<br />
$cdmaterials "models/props/"
$model "Fan" "fan.smd"<br />
$model "Fan" "fan.smd"
$pushd ".\new animations\"<br />
$pushd ".\new animations\"
$sequence "rotate" "rotate.smd"<br />
$sequence "rotate" "rotate.smd"
'''$popd'''<br />
'''$popd'''
$sequence "idle" "idle.smd"
$sequence "idle" "idle.smd"

Revision as of 20:47, 13 October 2007

This will revert the working directory to what it was before the $pushd command was issued.

Description

$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"