Entity.GetBodygroup

From GMod Wiki

Revision as of 08:07, 3 October 2009 by Dlaor (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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