Garry's Mod Wiki

Entity:FollowBone

Entity:FollowBone( Entity parent = NULL, number boneid )

Description

Makes an entity follow another entity's bone.

Internally this function calls Entity:SetParent( parent, boneid ), Entity:AddEffects( EF_FOLLOWBONE ) and sets an internal flag to always rebuild all bones.

If the entity vibrates or stops following the parent, you probably need to run Entity:SetPredictable( true ) clientside.
This function will not work if the target bone's parent bone is invalid or if the bone is not used by VERTEX LOD0

Arguments

1 Entity parent = NULL
The entity to follow the bone of. If unset, removes the FollowBone effect.
2 number boneid
The bone to follow

Page Links


Special Pages


Wikis

?

Render Time: 30ms

DB GetPage 3
Generate Html 4
SaveChanges (1) 10
Render Body 0
Render Sidebar 12