Cleanup is going to take awhile, so the site is back up but editing has been disabled.

Npc antlion template maker

From HalfLife 2 Knowledge Base

Jump to: navigation, search

Contents

npc_antlion_template_maker

Half-Life 2 Point Entity


description

Antlion Template Maker


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.
  • Name of template NPC TemplateName(target_destination)
  • Spawn on Hint Group spawngroup(string)
    If specified, children will spawn on a hint node from this group, nearest the target.
  • Spawn radius spawnradius(float) - default: 512
    Target must be within this distance of any node in the hint group specified above. If the target is outside the radius, no NPC will spawn.
  • Spawn target spawntarget(string)
    Targetname of the entity to try and spawn near.
  • Fight target fighttarget(string)
    Targetname of an entity used as a goal for the children to fight to.
  • Follow target followtarget(string)
    Targetname of an entity used as a goal for the children to follow.
  • Vehicle Spawn Distance vehicledistance(float) - default: 1
    This is a modifier of the current spawn distance. Spawn distance on a vehicle is based on speed, so this is just a modifier for it.
  • Ignore Bugbait ignorebugbait(choices)
    • 0 - No
    • 1 - Yes
  • Initial antlions in the pool. pool_start(integer) - default: 0
    Number of antlions in the pool at map start.
  • Max antlions in the pool. pool_max(integer) - default: 0
    Maximum number of antlions allowed in the pool. If 0, pool behavior is turned off.
  • Pool regen amount. pool_regen_amount(integer) - default: 0
    This is the number of antlions added to the pool every time it regenerates.
  • Pool regen time. pool_regen_time(float) - default: 0
    Time interval between pool regeneration ticks.


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
  • 1024: Random spawn node - default: OFF
  • 2048: Try to spawn close to the current target - default: OFF


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.


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.


related tutorials

Submit your tutorial for npc_antlion_template_maker

Personal tools