NPC Ladder -1 reply

Please wait...

mikenike07054

I Am The Lizard King

50 XP

18th October 2004

0 Uploads

184 Posts

0 Threads

#1 15 years ago

Hey, I was wondering how to make it so that when you kill an NPC, it spawns another one? Kind of Like a ladder? I looked in radiant and it told me to do NPC_targetname and NPC_target, but it did not seem to work...Any help?




lassev

Degenerate scripter

50 XP

21st June 2004

0 Uploads

847 Posts

0 Threads

#2 15 years ago

You don't need the NPC_targetname key. Just use the NPC_target. And remember to enter "count -1" (for infinitive) or some other count value to the NPC_spawner being targeted with the NPC_target key. You can also place a target_relay with a suitable delay in the middle of the targeting cycle if you want the new NPC to spawn not right away and immediately.




mikenike07054

I Am The Lizard King

50 XP

18th October 2004

0 Uploads

184 Posts

0 Threads

#3 15 years ago

that doesnt seem to work, like the first Enemy is triggered by a switch that is tripped when the player enters the game. After I kill that guy I want another 2 guys to spawn. After the last guy in that bunch is dead, I want 2 more to spawn in back of you. After those 2 are dead I want 4 to spawn. Do you get what Im trying to do? If theres only a NPC_target, then how doesit know what yo fire? Dont' i need a targetname?




lassev

Degenerate scripter

50 XP

21st June 2004

0 Uploads

847 Posts

0 Threads

#4 15 years ago

Of course you do. I thought it was so obvious I didn't mention it separately. NPC_targetname is PURELY for scripting purposes, that's why I said you don't need it. The target of NPC_target key is the ordinary targetname, just like you guessed (which is why I said it's obvious).

What comes to spawning new ones after a number of enemies are killed, you need a target_counter (target it with the NPC_target key of the NPCs to be killed). However, you may need to place a trigger_once between the _counter and the new NPC_spawners, because the _counter is a bit troublesome entity. Just place the "extra" trigger inside some detail brush, or something, so that nobody can trigger is by walking into it.