Garry's Mod Wiki

Entity:BoneLength

  number Entity:BoneLength( number boneID )

Description

Returns the length between given bone's position and the position of given bone's parent.

Arguments

1 number boneID
The ID of the bone you want the length of. You may want to get the length of the next bone ( boneID + 1 ) for decent results

Returns

1 number
The length of the bone

Example

Returns first bones length of first player on the server

print( Entity( 1 ):BoneLength( 1 ) )
Output: Returns 0