Entity.SetBodygroup

From GMod Wiki

Revision as of 10:35, 16 September 2010 by Chewgum (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
Function
Syntax Entity:SetBodygroup( Integer Bodygroup Number, Integer State )
Description:
Sets the state of the specified bodygroup.
Returns: nil
In Object: Entity
Realm: NewerShared.png
BBCode Link: [b][url=http://wiki.garrysmod.com/?title=Entity.SetBodygroup]Entity.SetBodygroup [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]



Examples

DescriptionOn a manhack, sets the blades to be visible.
Used onNewerShared.png
Code
 
-- Where mHack is an entity with a manhack model
-- Set bodygroup 1 ( the blades ) to 1 ( visible )
mHack:SetBodygroup( 1, 1 );
 
OutputThe blades are now visible


Additional Notes

See Also

Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox