$body: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
m (WisdomBot moved page $body to $body/en: Moved to {{Multipage}} compliant page name. This action was perfomed by a bot under supervision.)
mNo edit summary
Line 1: Line 1:
{{langsp|title=$body}}
{{langsp|title=$body}}
It 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).
It 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 {{ent|$bodygroup}}.}}
{{tip|All {{code|$body}} meshes will display simultaneously. Toggleable reference meshes can be handled with a {{ent|$bodygroup}}.}}


== Syntax ==
== Syntax ==

Revision as of 13:05, 22 January 2024

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

It 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:All $body meshes will display simultaneously. Toggleable 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