Garry's Mod Wiki

Entity:FindBodygroupByName

  number Entity:FindBodygroupByName( string name )

Description

Searches the Entity's model for a Body Group with a given name.

Weapons will return results from their viewmodels.

Arguments

1 string name
The name to search for.

Returns

1 number
The Body Group's ID or -1 if no Body Group has the provided name.