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

Key Based Switch? [Lower Floor Action]

Recommended Posts

I'm bracing myself for the "it's not possible" answer :(

I've been designing maps recently and the one I'm working on right now I have set up so you fight some demons, get the blue key, and I want a switch to lower the floor opening up the next area of the map, but I want it to be based on having the blue key otherwise my level design is literally useless.

Is there a way to make the floor lower action based on a switch require a key? Can I write a script somehow myself or what. What do I need to do to make this work. Maybe theres another trick to make it do the same type of thing but not use the lower floor action?

Any help would be appreciated.

Share this post


Link to post

A simple workaround would be to have a blue door in front of the switch. If you don't have enough room for a conventional door then you can make a mini-door with a switch texture in the switch indent. An example would be Congestion 1024's MAP04 if you really need a demonstration. If you're working in ZDoom however then you can easily write some ACS scripting that only activates with a blue key: check the ZDoom Wiki and you should find your answer there.

Share this post


Link to post

Exactly the answer I was hoping for. I'll mess around with the door idea and if it works fine I won't bother with the scripting. Thanks a bunch.

Share this post


Link to post

In fact if you're mapping for ZDoom in UDMF, every special can be given a lock number now.

Share this post


Link to post
Gez said:

In fact if you're mapping for ZDoom in UDMF, every special can be given a lock number now.


I just recently started mapping, I just tried to door setup to "hide" the switch and it worked perfectly.

I heard UDMF was a bit more challenging to map, although you can do a lot more with it.

Share this post


Link to post

I wouldn't say it's more challenging to map for UDMF than for Hexen format, since in fact all features are more easily accessed. There's more features more obviously available, which might be a bit overwhelming and might cause some people to feel "obligated" to use everything they can use. It's perfectly fine to only use basic features in UDMF.

Share this post


Link to post

Thanks for the info, I'll check it out. I finished my first map of my wad, but I'm running into problems now using SLADE to get it into an actual pwad that can be loaded without opening the map via console...giving me a bunch of problems maybe when I get the energy to try it again I'll look for some answers on here and if I can't find a solution I'll ask around some more. Thanks for the info.

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
×