Garry's Mod Wiki

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!"

Page Links


Special Pages


Wikis

?

Render Time: 29ms

Session 0
DB GetPage 3
Generate Html 5
SaveChanges 8
Render Body 0
Render Sidebar 11