$body: Difference between revisions
Jump to navigation
Jump to search
Tip:Models with facial animation use
Tip:Multiple reference meshes can be handled with a $bodygroup.
m (comments in diff) |
m (→See also: Russian language link) |
||
Line 39: | Line 39: | ||
*[[$model (QC)|$model]] | *[[$model (QC)|$model]] | ||
<!-- // arguably: re-listing links here that are/should be explained above is unnecessary clutter? --> | <!-- // arguably: re-listing links here that are/should be explained above is unnecessary clutter? --> | ||
{{otherlang:en}} | |||
{{otherlang:en:ru|$body:ru}} | |||
[[Category:QC Commands|body]] | [[Category:QC Commands|body]] |
Revision as of 06:02, 21 September 2008
The $body QC command is used to include a reference mesh SMD in a model. Without at least one $body the model will not be rendered.

$model
.
Syntax
$body <name> "<reference mesh SMD>"
where :
<name>
- A label for this $body to distinguish it from other reference meshes (if there are any).
<reference smd>
- Path to and name of the 'reference' (sometimes 'model') SMD relative to the QC file's current directory. The
.smd
extension is optional, but helps make the QC file easier to read.
Example
$modelname "weapons/shell.mdl" $cdmaterials "models/weapons/" $body shell "shell_ref.smd" $sequence idle "shell_idle.smd"
See also
- Reference mesh
- $lod "replacemodel"
- $bodygroup
- $model