Npc template maker

From Valve Developer Community
Revision as of 01:55, 12 July 2005 by Ts2do (talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Template:Wrongtitle

Entity Description

Entity Name: npc_template_maker

Template:Npcnote

Keyvalues

  • TemplateName
<target_destination> Template NPC that this maker should be creating clones of.
  • Radius
<float> Radius around this maker within which NPCs are to be placed. Spawned NPCs will try and find empty space within this radius to spawn.
  • DestinationGroup
<target_destination> If you'd like spawned NPCs to be created at an info_npc_spawn_destination entity, enter the name of that entity here. If you have more than one destination entity by that name, the Destination Criteria will be used to select one from the group.
  • CriterionVisibility
<choices> Should the NPC try to spawn at a destination that the player can see? Only applicable if a Destination Group is being used.
Literal Value Description
0 Yes
1 No
2 Don't Care
  • CriterionDistance
<Choices> Should the NPC try to spawn nearest to or farthest from the player's current location? Only applicable if a Destination Group is being used.
Literal Value Description
0 Nearest
1 Farthest
2 Don't Care

Flags

  • 256 : Always use radius spawn
  • 512 : Don't preload template models

Inputs

  • SpawnNPCInRadius
Spawn an NPC somewhere within the maker's radius.
  • SpawnNPCInLine
Spawn an NPC somewhere within a line behind the maker.
  • ChangeDestinationGroup <string>
Switch to a different set of Destination entities.

Outputs