Garry's Mod Wiki

Revision Difference

Entity:GetHitBoxGroupCount#519250

<function name="GetHitBoxGroupCount" parent="Entity" type="classfunc"> <description>Returns the number of hit box groups that an entity has.</description>⤶ <description><deprecated>You should use <page>Entity:GetHitboxSetCount</page> instead.</deprecated>⤶ ⤶ Returns the number of hit box sets that an entity has. Functionally identical to <page>Entity:GetHitboxSetCount</page></description>⤶ <realm>Shared</realm> <rets> <ret name="" type="number">number of hit box groups</ret>⤶ <ret name="" type="number">number of hit box sets</ret>⤶ </rets> </function> <example> <description>Prints how many hit box groups the client has</description> <description>Prints how many hit box sets the client has</description> <code> local numHitBoxGroups = LocalPlayer():GetHitBoxGroupCount() print(numHitBoxGroups) </code> </example>