$body

From Valve Developer Community
Revision as of 09:33, 29 April 2008 by Beeswax (talk | contribs) (cleanup - reference.smd should be defined/described on its own page)
Jump to navigation Jump to search

The $body QC command is used to specify a reference.smd. Without at least one $body, the model will not be rendered, ie it will be invisible.

Tip.pngTip:Models with facial animation use $model.
Note.pngNote:Reference meshes co-exist by default, rather than replacing each other.

Syntax

$body	<name> "<reference smd>.smd"

where :

<name>
A label for this $body to distinguish it from other reference meshes (if there are any).
<reference smd>
Path to and name of the 'reference' (sometimes 'model') SMD relative to the QC file's current directory. The .smd extension is optional, but helps make the QC file easier to read.

Example

$modelname		"weapons/shell.mdl"
$cdmaterials		"models/weapons/"
$body		shell	"shell_ref.smd"
$sequence	idle	"shell_idle.smd"

See also