Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
  • 0
tyrone8104

how to make a door open when you kill a monster

Question

hello I am making a doom wad. I am almost finished with it but i need to add a boss fight but i want to make it so when you kill the boss a door will open. if someone can please clarify if this is possible and if it is tell me how to do it. note i am using doom builder and slade and using zandronum 

Share this post


Link to post

3 answers to this question

Recommended Posts

  • 0

Yep, pretty much, just treat the monster as you would a normal door linedef.

The monster needs to have the door action 11, and then tag the monster to the door sector.

Share this post


Link to post
  • 0

Aquila Chrysaetos and Mr.Rocket answered your question when a single monster is targeted.

But how to proceed when you want to frag a group of monsters? Then you have to resort to scripting.

 

Tag every monster involved, for example the ShotgunGuy (T_SHOTGUY specifically), with the same, free tag number, for example 10 and then make the following script

#include "zcommon.acs"

script 1 OPEN
{
	While
	(ThingCount(T_SHOTGUY, 10) > 0) // are all ShotgunGuy fragged already

		Delay(35);
		Door_Open (1, 16, 0); // good, they are all fragged and this Door opens
}

Notice the script type OPEN.

 

Now, when there are still other monsters around (T_NONE non-specifically), you can group them with another same, free tag, for example 11. When they are fragged, end the map and go to the next map.

 


script 2 OPEN
{
	While
	(ThingCount(T_NONE, 11) > 0) // are all others fragged

		Delay(35);
		PrintBold(s:"WELL DONE"); // time for the next map
		Delay(35*5);
		Exit_Normal(0);
}

 

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×