Cleanup is going to take awhile, so the site is back up but editing has been disabled.
Npc maker
From HalfLife 2 Knowledge Base
Contents |
[edit]
npc_maker
Half-Life 2 Point Entity
[edit]
description
NPC Maker
[edit]
properties
- Pitch Yaw Roll (Y Z X) angles(angle) - default: 0 0 0
This entity's orientation in the world. Pitch is rotation around the Y axis, yaw is the rotation around the Z axis, roll is the rotation around the X axis. - Start Disabled StartDisabled(choices)
1- 0 - No
- 1 - Yes
- Num. of NPCs MaxNPCCount(integer) - default: 1
Number of NPCs that will spawn before this spawner is exhausted. - Frequency SpawnFrequency(string) - default: 5
How often (in seconds) a new NPC will be spawned. If set to -1, a new NPC will be made when the last NPC dies. - Max Live NPCs MaxLiveChildren(integer) - default: 5
Maximum number of live children allowed at any one time (New ones will not be made until one dies). If set to -1, no limit is applied. - Class name of spawned NPC NPCType(npcclass)
- Childrens' Name NPCTargetname(string)
- Childrens' Squad Name NPCSquadname(string)
- Childrens' Hint Group NPCHintGroup(string)
- Weapons additionalequipment(choices)
- "weapon_pistol" - Pistol
- "weapon_ar2" - AR2
- "weapon_shotgun" - Shotgun
- "weapon_smg1" - SMG1
- "weapon_stunstick" - Stun Stick
- "weapon_annabelle" - Grigori's Shotgun
- "0" - Nothing
[edit]
spawn flags
- 16: Fade Corpse - default: OFF
- 32: Infinite Children - default: OFF
- 64: Do Not Drop - default: OFF
- 128: Don't Spawn While Visible - default: OFF
- 16: Fade Corpse - default: OFF
[edit]
inputs
- Spawn(void)
Spawns an NPC. - Toggle(void)
Toggles the spawner enabled/disabled state. - Enable(void)
Enables the spawner. - Disable(void)
Disables the spawner. - AddMaxChildren(integer)
Adds to the number of NPCs that can spawn before the spawner is exhausted. If an exhausted spawner is given some children to spawn, it still wont begin spawning until it is re-enabled with the Enable input. - SetMaxChildren(integer)
Sets the number of NPCs that can spawn before the spawner is exhausted. If an exhausted spawner is given some children to spawn, it still wont begin spawning until it is re-enabled with the Enable input. - SetMaxLiveChildren(integer)
Sets the maximum number of NPCs that can be alive at any one time from this spawner. - SetSpawnFrequency(float)
Sets how often (in seconds) a new NPC will be spawned.
[edit]
outputs
- OnSpawnNPC(string)
Fired when an NPC is spawned. The activator is the NPC, and the string is the name of the NPC. - OnAllSpawned(void)
Fired when the spawned is exhausted (all children have been spawned). - OnAllSpawnedDead(void)
Fired when the spawner is exhausted (all children have been spawned) and all spawned children have died.
[edit]
related tutorials
Submit your tutorial for npc_maker

