Garry's Mod Wiki

Revision Difference

Entity:BoneLength#515742

<function name="BoneLength" parent="Entity" type="classfunc">⤶ <description>This function takes the boneID and returns the length of it in an unrounded decimal</description>⤶ <realm>Shared</realm>⤶ <args>⤶ <arg name="boneID" type="number">The ID of the bone you want the length of. You may want to get the length of the next bone ( boneID &#x2B; 1 ) for decent results</arg>⤶ </args>⤶ <rets>⤶ <ret name="" type="number">The length of the bone</ret>⤶ </rets>⤶ </function>⤶ ⤶ <example>⤶ <description>Returns first bones length of first player on the server</description>⤶ <code>print( player.GetByID( 1 ):BoneLength( 1 ) )</code>⤶ <output>Returns 0</output>⤶ ⤶ </example>