Garry's Mod Wiki

Garry's Mod Wiki

  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.

This site is a community mirror of the official Garry's Mod wiki.. This site is not maintained by Facepunch Studios.

Page content is automatically updated twice a day. Edits and history are not available.

Last Parsed: Loading...