Garry's Mod Wiki

Entity:GetHitBoxHitGroup

  number Entity:GetHitBoxHitGroup( number hitbox, number hitboxset )

Description

Gets the hit group of a given hitbox in a given hitbox set.

Arguments

1 number hitbox
The number of the hit box.
2 number hitboxset
The number of the hit box set. This should be 0 in most cases.

Numbering for these sets start from 0. The total group count can be found with Entity:GetHitBoxSetCount.

Returns

1 number group
The hitbox group of given hitbox. See HITGROUP enum