Npc maker: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(Description and links...)
m (Forgot it doesn't necessarily have to be triggered...)
Line 2: Line 2:
==Entity Description==
==Entity Description==


Used for spawning particular NPCs when triggered, either to provide enemies for 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 basis, or the [[point_template]] entity which is more suited for spawning an entire squad into the appropriate positions.
Used for spawning particular NPCs, either to provide enemies for 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 basis, or the [[point_template]] entity which is more suited for spawning an entire squad into the appropriate positions.


{{npcnote}}
{{npcnote}}

Revision as of 03:26, 1 August 2005

Template:Wrongtitle

Entity Description

Used for spawning particular NPCs, either to provide enemies for 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 basis, 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.