$body: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
m (→‎Syntax: inline $body commands)
m (updated language bar.)
Line 1: Line 1:
{{otherlang2
{{lang|$body|$title=$body}}[[Category:QC Commands|b]]
|ru=$body:ru
The [[QC command]] {{ent|$body}} 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).
|ko=$body:ko
}}
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).


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


== Syntax ==
== Syntax ==
Line 18: Line 15:
  [[$sequence]] idle "shell_idle.smd"
  [[$sequence]] idle "shell_idle.smd"


== See also ==
== See Also ==
 
*[[Reference mesh]]
*[[Reference mesh]]
*[[$lod]], for lowering detail at a distance
*{{ent|$lod}}, for lowering detail at a distance
*[[$bodygroup]], for managing multiple <code>$body</code>s
*{{ent|$bodygroup}}, for managing multiple <code>$body</code>s
*[[$model (QC)|$model]], for facial animation
*<code>[[$model (QC)|$model]]</code>, for facial animation
 
 
[[Category:QC Commands|b]]

Revision as of 10:20, 10 May 2022

English (en)한국어 (ko)Русский (ru)Translate (Translate)

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> [reverse] [scale <int>]

Example

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

See Also