Npc maker

From Valve Developer Community
Jump to navigation Jump to search

Template:Wrongtitle

Entity Description

Npc maker.png

Spawns a class of NPC at its position when told to. Typically used to provide a continuous wave of attackers during an ambush, or to replace killed enemies in a standoff-type situation.

For more control over the properties of the spawned NPCs, see the npc_template_maker point entity which uses 'template' NPCs as a base, or the point_template entity which is more suited for spawning an entire squad into the appropriate positions.

Note.pngNote:Some keyvalues, spawnflags, effect flags, inputs, or outputs might not affect an NPC, based on the functionality and coding of the NPC.

Keyvalues

  • Relationship
<string> Childrens' relationship string
m_RelationshipString defined in the CNPCMaker class
  • NPCType
<npcclass> Class name of spawned NPC
  • NPCTargetname
<string> Childrens' Name
  • NPCSquadname
<string> Childrens' Squad Name
  • NPCHintGroup
<string> Childrens' Hint Group
  • additionalequipment
<choices> Weapons - Allows any weapon
Pick one that is made to function for NPCs
Literal Value Description
weapon_pistol Pistol
weapon_ar2 AR2
weapon_shotgun Shotgun
weapon_smg1 SMG1
weapon_stunstick Stun Stick
weapon_annabelle Grigori's Shotgun
0 Nothing

Flags

Inputs

Outputs

See Also

  • npc_template_maker - uses template NPC entities for more control over spawned NPCs.
  • point_template - spawns NPCs (or other entities) in-place; can deal with up to sixteen different targetnames simultaneously, and multiple entities per targetname.