FollowEntity()

From Valve Developer Community
Revision as of 01:36, 5 April 2008 by TomEdwards (talk | contribs)
Jump to navigation Jump to search

Used to control the parent of the current entity.

Syntax

FollowEntity( CBaseEntity *pBaseEntity, bool bBoneMerge = true )

Values

pBaseEntity
Defines a parent. In doing so:
pBaseEntity = NULL
The entity leaves its parent and moves on its own. StopFollowingEntity() may also be used.
bBoneMerge = false
Prevent the current entity from moving with pBaseEntity's animations. It will move relative to pBaseEntity's origin only.
Todo: How to choose an attachment point?