$body: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
No edit summary
mNo edit summary
Line 1: Line 1:
The [[QC command]] '''<code>[[$body]]</code>''' is used to add a [[reference mesh]] to a model. Without at least one <code>$body</code> the model will be invisible.
The [[QC command]] '''<code>[[$body]]</code>''' is used to add a [[reference mesh]] to a model. Without at least one <code>$body</code> the model will be invisible (exception: models with [[facial animation]] use <code>[[$model (QC)|$model]]</code> instead).
 
Models with [[facial animation]] should use <code>[[$model (QC)|$model]]</code> instead.


{{tip|Multiple reference meshes can be handled with a <code>[[$bodygroup]]</code>.}}
{{tip|Multiple reference meshes can be handled with a <code>[[$bodygroup]]</code>.}}

Revision as of 07:00, 7 January 2009

The QC command $body is used to add a reference mesh to a model. Without at least one $body the model will be invisible (exception: models with facial animation use $model instead).

Tip.pngTip:Multiple reference meshes can be handled with a $bodygroup.

Syntax

$body	<name> <reference mesh SMD>

Example

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

See also

Template:Otherlang:en Template:Otherlang:en:ru