This article's documentation is for anything that uses the Source engine. Click here for more information.

$body

From Valve Developer Community
Revision as of 12:01, 22 September 2023 by Equalizer5118 (talk | contribs)
Jump to navigation Jump to search
English (en)한국어 (ko)Русский (ru)Translate (Translate)

This is a c0 available in all Source Source games. 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: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