How do I spawn one enemy at a time with a switch?

Ask about mapping, UDMF, using DoomBuilder/editor of choice, etc, here!

Moderator: GZDoom Developers

Forum rules
Before asking on how to use a ZDoom feature, read the ZDoom wiki first. If you still don't understand how to use a feature, then ask here.
Post Reply
Fat_Angus
Posts: 75
Joined: Mon Jun 12, 2017 5:52 pm

How do I spawn one enemy at a time with a switch?

Post by Fat_Angus »

I'm trying to create a sort of shooting gallery scenario where you press a switch to spawn an enemy, and you cannot spawn another enemy with the same mapspot using the switch until the previous enemy is dead. I also want this to trigger a script after x amount of times. My ACS knowledge has gone rusty. Please help!
Jarewill
 
 
Posts: 1768
Joined: Sun Jul 21, 2019 8:54 am

Re: How do I spawn one enemy at a time with a switch?

Post by Jarewill »

How about something like this?
Spoiler:
Fat_Angus
Posts: 75
Joined: Mon Jun 12, 2017 5:52 pm

Re: How do I spawn one enemy at a time with a switch?

Post by Fat_Angus »

That worked! Thanks. I really need to revise my ACS knowledge, lol. It's been years.
Post Reply

Return to “Mapping”