Npc puppet: Difference between revisions
Jump to navigation
Jump to search
Craziestdan (talk | contribs) mNo edit summary |
(-added class hierarchy, concise page) |
||
(6 intermediate revisions by 4 users not shown) | |||
Line 1: | Line 1: | ||
{{ | {{CD|CNPC_Puppet|file1=1}} | ||
{{this is a|model entity|name=npc_puppet|game=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 == | |||
{{KV Targetname}} | |||
{{KV|Animation target|intn=animationtarget|target_source|NPC entity to mimic.}} | |||
{{KV|Target attachment point name|intn=attachmentname|string}} | |||
== Inputs == | |||
{{I|SetAnimationTarget|Set the animation target to use. An empty string will disable the puppet.|param=string}} | |||
[[Category:NPCs]] | [[Category:NPCs]] |
Latest revision as of 05:13, 19 May 2025
![]() |
---|
CNPC_Puppet |
![]() |
npc_puppet
is a model entity available in 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
ortarget
).
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 <string >
- Set the animation target to use. An empty string will disable the puppet.