Garry's Mod Wiki

Entity:GetBoneCount

  number Entity:GetBoneCount()

Description

Returns the amount of bones in the entity.

Will return 0 for ClientsideModel or undrawn entities until Entity:SetupBones is called on the entity.

Returns

1 number
The amount of bones in given entity.

Example

Prints amount of bones in player 1

Output: The amount of bones in player 1, which normally would be 68.