$root: Difference between revisions
		
		
		
		
		
		Jump to navigation
		Jump to search
		
				
		
		
	
m (Changed parameters of {{this is a}} to comply with the updated version. This action was performed by a bot.)  | 
				SirYodaJedi (talk | contribs)  mNo edit summary  | 
				||
| Line 11: | Line 11: | ||
  $modelname "npcs/dog.mdl"  |   $modelname "npcs/dog.mdl"  | ||
  $cdmaterials "models/npcs/"  |   $cdmaterials "models/npcs/"  | ||
  $model   |   $model Dog "dog"  | ||
  '''$root "pelvis"'''  |   '''$root "pelvis"'''  | ||
  $sequence   |   $sequence idle "idle"  | ||
[[Category:QC Commands|root]]  | [[Category:QC Commands|root]]  | ||
Revision as of 11:28, 16 August 2024
$root  is a   QC command  available in all 
 Source games. It resets what bone is used as the "root" bone if there are multiple root - no parent - bones. The root bone is used for all movement and rotation calculations, as well as setting the root bone for ragdolls. This command is usually used to remove controller bones from the animation process.
Syntax
$root <bone name>
Example
$modelname "npcs/dog.mdl" $cdmaterials "models/npcs/" $model Dog "dog" $root "pelvis" $sequence idle "idle"