Npc template maker: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 19: | Line 19: | ||
: <choices> Should the NPC try to spawn at a destination that the player can see? Only applicable if a Destination Group is being used. | : <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 | | 0 || Yes | ||
Line 30: | Line 30: | ||
: <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. | : <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 | | 0 || Nearest |
Revision as of 19:34, 11 July 2005
Entity Description
Entity Name: npc_template_maker
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.