Re: spawn
Posted by kiwii on
Mon Dec 13th 2004 at 7:13pm
2 posts
0 snarkmarks
Registered:
Dec 13th 2004
how do i spawn enemies for a certain amount of time? im pretty sure it involves Entities but i cant find a spawn e[size=13]ntities... :sad: anyone knows?
[/size]
Re: spawn
Posted by Guessmyname on
Mon Dec 13th 2004 at 7:42pm
342 posts
173 snarkmarks
Registered:
Dec 6th 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?
Re: spawn
Posted by satchmo on
Mon Dec 13th 2004 at 7:51pm
satchmo
member
2077 posts
1809 snarkmarks
Registered:
Nov 24th 2004
Occupation: pediatrician
Location: Los Angeles, U.S.
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.
Re: spawn
Posted by kiwii on
Mon Dec 13th 2004 at 8:12pm
2 posts
0 snarkmarks
Registered:
Dec 13th 2004
Yes finally ! Thanks alot guys you really saved my day :smile:
Re: spawn
Posted by Carcase on
Sun Feb 20th 2005 at 10:15pm
Posted
2005-02-20 10:15pm
Carcase
member
145 posts
15 snarkmarks
Registered:
Nov 15th 2003
Location: Northern Virginia
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"