$root: Difference between revisions
		
		
		
		
		
		Jump to navigation
		Jump to search
		
				
		
		
	
| SirYodaJedi (talk | contribs) No edit summary | No edit summary | ||
| Line 15: | Line 15: | ||
|   '''$root "pelvis"''' |   '''$root "pelvis"''' | ||
|   $sequence idle "idle" |   $sequence idle "idle" | ||
Latest revision as of 17:43, 3 August 2025
$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.
 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"
