Garry's Mod Wiki



  Entity:SetBodyGroups( string bodygroups )


Sets the bodygroups from a string. A convenience function for Entity:SetBodygroup.

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


1 string bodygroups
Body groups to set. Each single-digit number in the string represents a separate bodygroup. This makes it impossible to set any bodygroup to a value higher than 9! For that you need to use Entity:SetBodygroup.


Example of the format

Entity(1):SetBodyGroups( "021" )
Output: Sets first bodygroup value to 0, second to 2 and third to 1.

Special Pages



Render Time: 19ms

DB GetPage 2
Generate Html 3
SaveChanges (1) 5
Render Body 0
Render Sidebar 6