Garry's Mod Wiki

Entity:GetBodygroupCount

Entity:GetBodygroupCount

  number Entity:GetBodygroupCount( number bodygroup )

Description

Returns the count of possible values for this bodygroup.

This is not the maximum value, since the bodygroups start with 0, not 1.

If called for Weapon (after Initialize hook) with different body groups on world model and view model will return value form view model.

Arguments

1 number bodygroup
The ID of bodygroup to retrieve count of.

Returns

1 number
Count of values of passed bodygroup.

Special Pages


Wikis

?

Render Time: 50ms

DB GetPage 5
Generate Html 2
SaveChanges (1) 35
Render Body 0
Render Sidebar 6