Entity/GetBoneCount

From Garry's Mod
Revision as of 10:40, 13 May 2019 by Code gs (Talk | contribs)
Jump to: navigation, search
 Entity:GetBoneCount( )

Contents

Description

Returns the amount of bones in the entity.

NOTE

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

Returns

number

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

Examples

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.
Personal tools
Navigation