Garry's Mod Wiki

Entity:GetBodygroupName

Description

Gets the name of specific bodygroup for given entity.

Arguments

1 number id
The id of bodygroup to get the name of.

Returns

1 string
The name of the bodygroup

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.

Page Links


Special Pages


Wikis

?

Render Time: 20ms

Session 0
DB GetPage 3
Generate Html 1
SaveChanges 8
Render Body 0
Render Sidebar 6