Entity/SetBodyGroups

From Garry's Mod
Jump to: navigation, search
 Entity:SetBodyGroups( )

Contents

Description

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

Arguments

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.

Examples

Example

Example of the format

Entity(1):SetBodyGroups( "021" )

Output:

Sets first bodygroup value to 0, second to 2 and third to 1.
Personal tools
Navigation