Garry's Mod Wiki

Garry's Mod Wiki

  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

This site is a community mirror of the official Garry's Mod wiki.. This site is not maintained by Facepunch Studios.

Page content is automatically updated four times a day. Edits and history are not available.

Last Parsed: Loading...