Garry's Mod Wiki

Entity:SetBodyGroups

  Entity:SetBodyGroups( string bodygroups )

Description

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.

Arguments

1 string bodygroups
Body groups to set. Each character in the string represents a separate bodygroup. (0 to 9, a to z being (10 to 35))

Example

Example of the format

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