Garry's Mod Wiki

Entity:SetBodyGroups

Entity:SetBodyGroups( string bodygroups )

Description

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

Arguments

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

Example

Example of the format

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

Page Links


Special Pages


Wikis

?

Render Time: 31ms

Session 0
DB GetPage 2
Generate Html 7
SaveChanges 8
Render Body 0
Render Sidebar 12