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

Can you require a key for a switch to be thrown?

Question

Sorry for the stupid question, but I'm making a wad with a staircase that goes down. For the staircase to build, the player needs to throw the switch. I was wondering, can I make it so that the player requires a keycard in order to flip the switch? I don't see the option anywhere, and I don't want to just lock the room or the switch behind a door/gate. 

Any help is appreciated, thanks!

Share this post


Link to post

4 answers to this question

Recommended Posts

  • 2

Depends on what format you are using.

In Boom:

  • Make a voodoo doll closet.
  • On the switch, give the action "S1 Door (Red) Open Stay (fast)". Here instead of red you can also put any key.
  • Give the switch linedef the same tag as the door in the voodoo doll closet
  • Place a linedef in the closet (no need to connect). 
  • Give the linedef any action you want (Must be a walkable action)
  • Tag the linedef and the sector where you want the effect to happen.
  • (I would suggest you to configure and use the handy voodoo doll script which is available in UDB)

In UDMF:

  • In the editing window of the switch, press the lock number and select what type of key you want to use that switch.
  • Give the action and all that jazz.

Share this post


Link to post
  • 0
16 hours ago, SuyaSS said:

In UDMF:

  • In the editing window of the switch, press the lock number and select what type of key you want to use that switch.
  • Give the action and all that jazz.

I'm in UDMF format and working in Slade 3. Where I can find the editing window? I can't find a key option in the properties tab and edit mode (hitting E on the line) doesn't have a lock or key option visible. 

example.png

Share this post


Link to post
  • 0
11 hours ago, Aurelius said:

In the line properties menu, go to Other Properties and click the Show All box at the top. The property you're looking for is Lock Number. Refer to https://zdoom.org/wiki/Key_types to figure out which key / set of keys you want.

I completely missed the show all box, this helps a bunch. Thank you!

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
×