spawn
Post Reply
Quote
Re: spawn
Posted by kiwii on Mon Dec 13th at 7:13pm 2004


how do i spawn enemies for a certain amount of time? im pretty sure it involves Entities but i cant find a spawn entities... anyone knows?





Quote
Re: spawn
Posted by Guessmyname on Mon Dec 13th at 7:42pm 2004


Have you tried using an npc_maker entity or an npc_template_maker entity (more complicated but let you have them spawn and do stuff - if you can get it work)

NPC_MAKER

You need to give the entity a name for this!

Make one where you want them to spawn. Orientate it to face the direction you want your spawning monsters to face.

In the [Class name of spawned NPC] box type the name of your monster (ie npc_headcrab) etc

[Frequency] Should be obvious - the time it takes for a new monster to spawn after the previous one died (I think a setting of -1 makes the next one spawn when the previous one dies - I read it somewhere)

[Max Live NPCs] Maximum number of NPCs alive at one time (-1 = infinite)

[Num. of NPCs] The maxiumum number of monsters that can ever be spawned (-1 = infinite)

[Children's name] The name that will be given to every spawned monster

[Children's squad name] The name for the spawning monsters' squad

[Weapons] Obvious. The weapons given to the spawned monsters. YOU CANNOT PICK UP THE STUN-STICK!

[Start Disabled] Only have as yes if you want them to spawn as soon as the game begins. If you wan it to stop you will have to mess with the [Frequency] and [Num. of NPCs] boxes

NPC_TEMPLATE_MAKER

Like the NPC_MAKER but instead you make your desired monster, fiddle with its settings and check the Template NPC flag and give it a name

Then when you make your NPC_Template_Maker you enter your npc in its [Name of Template_NPC] box

If you want this thing to trigger when you walk into a room you have a trigger_once brush entity in the doorway. You give it two outputs - one to turn it on, and one to turn it off after a delay.

Anyone want this as a tutorial?





Quote
Re: spawn
Posted by satchmo on Mon Dec 13th at 7:51pm 2004


The entity you're looking for is "npc_maker". You can specify the type of npc (choose from a drop-down list) and the max number spawned.
[addsig]




Quote
Re: spawn
Posted by kiwii on Mon Dec 13th at 8:12pm 2004


Yes finally ! Thanks alot guys you really saved my day



Quote
Re: spawn
Posted by Carcase on Sun Feb 20th at 10:15pm 2005


I used an npc_template_maker. ok, so an elite soldier dies, which triggers my dropship to spawn. this much works. only problem is, the dropship's crate is stuck in the ground partially. I have the npc_template_maker way way above the water, which has ground a few feet beneath it, and checked the box "do not drop". no matter how high or where i position the maker, the dropship gets stuck in the ground. I even removed the ground, and it got stuck in the skybox below. any suggestions? In the output of the death guy, i put "spawn NPC radius"




Post Reply