Garry's Mod Wiki


  Entity:SetBodygroup( number bodygroup, number value )


Sets an entities' bodygroup.

If called for Weapon (after Initialize hook) with different body groups on world model and view model, check will occur by view model.


1 number bodygroup
The id of the bodygroup you're setting. Starts from 0.
2 number value
The value you're setting the bodygroup to. Starts from 0.