Jump to content

Performing Multiple Actions With a Linedef


Recommended Posts

Hi, I'm using Doom Builder X to build maps, and I believe I have the latest stable build that was available for download. I'm trying to make a switch that would perform what would be considered multiple actions on a sector here:

 

 

doombuildersector.png.14215a810650b28508e00c4bcbc99f21.png

 

I want the switch (in the lower left of the image) to raise the Floor Height, change the Floor Texture and remove the sector's Damage attribute all at once. I set one action on the Linedef that has the switch texture, but I am unsure how to add more, or if that is even possible. Just to test things out, I set the Linedef action to alter the Sector Damage:

 

doombuildersectordamage.png.a6819b4681cdcc3e16c713218b9b2f58.png

 

 

 

One method I have already tried is creating a Sector Actions Thing that performs one of the actions, while the Linedef performs the other. Under "Sector Actions" I chose Player Uses Wall, and in the Action tab, I chose Floor Raise to Nearest Floor:

 

doombuildersectoractions.png.a54963dd8dfa73cbaa4866eb08b264f3.png

 

doombuildersectorraise.png.6b16a2ddcf5b0db6c99e3e4f674c055a.png

 

But the issue is that while the Linedef acts as a switch and performs the action of setting the Sector Damage to 0, I am only able to activate this Thing once the Linedef has been interacted with. Is there any way to perform both, or multiple actions with just a single interaction with the Linedef? I am not sure if I have even come across the option to change Floor Texture under any of these Linedef or Sector actions. What is the best way I should go about it?

Share this post


Link to post

Given that you're using a Hexen-style parameterized special for your linedef, that means your map format is either Hexen or UDMF. In either case, there is a convenient way to have one line performing multiple actions, it is to make a script (with ACS), from which multiple actions can be run, and to have the line activate the script.

 

That said, in this particular case, there are built-in actions that will do all you want in one go: raise floor (by a given value), change the texture, and change the sector type: Floor_RaiseByValueTxTy, or Generic_Floor.

Share this post


Link to post
9 minutes ago, Gez said:

Given that you're using a Hexen-style parameterized special for your linedef, that means your map format is either Hexen or UDMF. In either case, there is a convenient way to have one line performing multiple actions, it is to make a script (with ACS), from which multiple actions can be run, and to have the line activate the script.

 

That said, in this particular case, there are built-in actions that will do all you want in one go: raise floor (by a given value), change the texture, and change the sector type: Floor_RaiseByValueTxTy, or Generic_Floor.

 

 

Found what I was looking for in the latter! Thanks!

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
Reply to this topic...

×   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...