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

$body: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
m (Nesciuse moved page $body/en to $body without leaving a redirect: Move to proper place)
mNo edit summary
Line 15: Line 15:
  [[$modelname]] "weapons/shell.mdl"
  [[$modelname]] "weapons/shell.mdl"
  [[$cdmaterials]] "models/weapons/"
  [[$cdmaterials]] "models/weapons/"
  '''[[$body]] shell "shell_ref.smd"'''
  '''[[$body]] shell "shell_ref"'''
  [[$sequence]] idle "shell_idle.smd"
  [[$sequence]] idle "shell_idle"


== See also ==
== See also ==

Revision as of 09:40, 16 August 2024

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

$body is a QC command 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).

Note.pngNote:All $body meshes will display simultaneously. Toggleable reference meshes can be handled with a $bodygroup.
Tip.pngTip:The order in which $body meshes are defined in the QC determines the order in which the meshes are rendered. This can be used to prevent z-fighting on transclucent decals or overlays.

Syntax

$body	<name> <reference mesh SMD> [reverse] [scale <int>]

Example

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

See also