Garry's Mod Wiki

Revision Difference

Entity:FindBodygroupByName#544780

<function name="FindBodygroupByName" parent="Entity" type="classfunc"> <description>Searches for bodygroup with given name.</description>⤶ <description>Searches for bodygroup with given name.<note>If called for Weapon with different body groups on world model and view model will return value form view model.</note>⤶ </description>⤶ <realm>Shared</realm> <args> <arg name="name" type="string">The bodygroup name to search for.</arg> </args> <rets> <ret name="" type="number">Bodygroup ID, -1 if not found</ret> </rets> </function>