Entity.GetBodygroup
From GMod Wiki
Function | |
Syntax | Entity:GetBodygroup( Integer Bodygroup_Number ) |
Description: | |
Returns the state of the specified bodygroup. | |
Returns: | Integer |
In Object: | Entity |
Realm: | |
BBCode Link: | [b][url=http://wiki.garrysmod.com/?title=Entity.GetBodygroup]Entity.GetBodygroup [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b] |
Examples
Description | On a manhack, sees if the blades are visible. |
---|---|
Used on | |
Code | -- Where mHack is an entity with a manhack model, with blades visible print( mHack:GetBodyGroup( 1 ) ) |
Output | 1 |
Additional Notes
- Certain models have bodygroups; an example of this is the manhack, which has two bodygroups. The first is the blade; by default, this blade is not visible. When the bodygroup is turned on, it is visible. The second bodygroup of the manhack is the blur of the blade.