Garry's Mod Wiki

Revision Difference

Entity:GetBodygroupCount#544785

<function name="GetBodygroupCount" parent="Entity" type="classfunc"> <description> Returns the count of possible values for this bodygroup. This is **not** the maximum value, since the bodygroups start with 0, not 1. <note>If called for Weapon with different body groups on world model and view model will return value form view model.</note> <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> <realm>Shared</realm> <args> <arg name="bodygroup" type="number">The ID of bodygroup to retrieve count of.</arg> </args> <rets> <ret name="" type="number">Count of values of passed bodygroup.</ret> </rets> </function>