Garry's Mod Wiki

Entity:GetHitBoxCount

Entity:GetHitBoxCount

number Entity:GetHitBoxCount( number group )

Description

Gets how many hit boxes are in a given hit box group.

Arguments

1 number group
The number of the hit box group.

Returns

1 number
The number of hit boxes.

Example

Will print out how many hit boxes the client has in each of their hit box groups.

local numHitBoxGroups = LocalPlayer():GetHitboxSetCount() for i = 0, numHitBoxGroups - 1 do local numHitBoxes = LocalPlayer():GetHitBoxCount( i ) print( "Hit box group " .. i .. " has " .. numHitBoxes .. " hit boxes!" ) end
Output: Hit box group 0 has 17 hit boxes!

Special Pages


Wikis

?

Render Time: 55ms

DB GetPage 36
Generate Html 3
SaveChanges (1) 7
Render Body 0
Render Sidebar 7