Garry's Mod Wiki

Entity:SetBodygroup

  Entity:SetBodygroup( number bodygroup, number value )

Description

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.

Arguments

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.