npc_puppet

From Valve Developer Community
Jump to navigation Jump to search
Class hierarchy
CNPC_Puppet
CAI_BaseNPC
CBaseCombatCharacter
CBaseFlex
CBaseAnimatingOverlay
CBaseAnimating
CBaseEntity
npc_puppet.cpp

npc_puppet is a model entity available in Half-Life 2 Half-Life 2. It is a puppet entity that mimics the animations of a target NPC.

For example, place a combine soldier then an npc_puppet and edit the npc_puppet to follow the soldier and it will mimic whatever the soldier does.

Keyvalues

Name (targetname) <string>[ Edit ]
The name that other entities refer to this entity by, via Inputs/Outputs or other keyvalues (e.g. parentname or target).
Also displayed in Hammer's 2D views and Entity Report.
See also:  Generic Keyvalues, Inputs and Outputs available to all entities

Animation target (animationtarget) <string>
NPC entity to mimic.
Target attachment point name (attachmentname) <string>

Inputs

SetAnimationTarget <stringRedirectInput/string>
Set the animation target to use. An empty string will disable the puppet.