Entity/GetBodygroupName

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

Contents

Description

Gets the name of specific bodygroup for given entity.

Arguments

number id

The id of bodygroup to get the name of.

Returns

string

The name of the bodygroup

Examples

Example

Demonstrates the use of this function.

print( player.GetByID(1):GetEyeTrace().Entity:GetBodygroupName(1) )

Output:

"Weapon" in console, if player 1 is aiming at airboat.
Personal tools
Navigation