$hbox: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
($hbox)
 
m (Missing preposition)
Line 1: Line 1:
Creates a hit box around a bone. These hitboxes are used the AI for simple collisions, such as bullets.
Creates a hit box around a bone. These hitboxes are used by the AI for simple collisions, such as bullets.


Running [[studiomdl]] with the <code>-h</code> option will print out all of the autogenerated hitboxes.
Running [[studiomdl]] with the <code>-h</code> option will print out all of the autogenerated hitboxes.

Revision as of 12:28, 21 November 2011

Creates a hit box around a bone. These hitboxes are used by the AI for simple collisions, such as bullets.

Running studiomdl with the -h option will print out all of the autogenerated hitboxes.

If any hitboxes are defined this way, autohitbox generation is disabled.

Syntax

$hbox (group number) (bone name) (min x) (min y) (min z) (max x) (max y) (max z)