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( player.GetByID( 1 ):BoneLength( 1 ) )
Output: Returns 0

Page Links


Special Pages


Wikis

?

Render Time: 26ms

DB GetPage 3
Generate Html 3
SaveChanges (1) 11
Render Body 0
Render Sidebar 7