Garry's Mod Wiki

Revision Difference

Entity:FindBodygroupByName#544783

<function name="FindBodygroupByName" parent="Entity" type="classfunc"> <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> <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="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>