Garry's Mod Wiki

Entity:GetNumBodyGroups

  number Entity:GetNumBodyGroups()

Description

Returns the body group count of the entity.

If called for Weapon (after Initialize hook) with different body groups on world model and view model will return value form view model.

Returns

1 number
Amount of bodygroups the entitys model has