Garry's Mod Wiki

Revision Difference

Entity:GetNumBodyGroups#562782

<function name="GetNumBodyGroups" parent="Entity" type="classfunc"> <description>Returns the body group count of the entity.⤶ <note>If called for Weapon (after Initialize hook) with different body groups on world model and view model will return value form view model.</note>⤶ </description>⤶ <description>⤶ Returns the number of Body Groups that the <page text="Entity's">Entity</page> model contains.⤶ <note>⤶ Weapons will return results from their viewmodels.⤶ </note>⤶ </description>⤶ <realm>Shared</realm> <rets> <ret name="" type="number">Amount of bodygroups the entitys model has</ret>⤶ <ret name="" type="number">⤶ The amount of Body Groups on the Entity's model.⤶ </ret>⤶ </rets> </function>