Entity.GetBodygroup

From GMod Wiki

Jump to: navigation, search
Function
Syntax Entity:GetBodygroup( Integer Bodygroup_Number )
Description:
Returns the state of the specified bodygroup.
Returns: Integer
In Object: Entity
Realm: NewerShared.png
BBCode Link: [b][url=http://wiki.garrysmod.com/?title=Entity.GetBodygroup]Entity.GetBodygroup [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]



Examples

DescriptionOn a manhack, sees if the blades are visible.
Used onNewerShared.png
Code
 
-- Where mHack is an entity with a manhack model, with blades visible
print( mHack:GetBodyGroup( 1 ) )
 
Output1


Additional Notes

See Also

Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox