Entity/FollowBone

From Garry's Mod
Jump to: navigation, search
 Entity:FollowBone( )

Description

Makes an entity follow another entity's bone.

Internally this function calls Entity:SetParent( parent, boneid ) and Entity:AddEffects( EF_FOLLOWBONE ).

NOTE

If the entity vibrates, you probably need to run Entity:SetPredictable( false ) clientside.

WARNING

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

Entity parent=NULL

The entity to follow the bone of. If unset, removes the FollowBone effect.

Arguments

number boneid

The bone to follow
Personal tools
Navigation