Jump to content
  • 0

how to make a door open when you kill a monster


tyrone8104

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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...