Garry's Mod Wiki

Entity:GetBoneCount

number Entity:GetBoneCount()

Description

Returns the amount of bones in the entity.

Will return -1 for ClientsideModel or undrawn entities until Entity:SetupBones is called on the entity.

Returns

1 number
The amount of bones in given entity; -1 on failure.

Example

Prints amount of bones in player 1

print( Entity(1):GetBoneCount() )
Output: The amount of bones in player 1, which normally would be 68.

Page Links


Special Pages


Wikis

?

Render Time: 32ms

DB GetPage 4
Generate Html 2
SaveChanges (1) 9
Render Body 0
Render Sidebar 12