Moving floor up & down with 1 switch? (Hexen settings)

Ask about mapping, UDMF, using DoomBuilder/editor of choice, etc, here!

Moderator: GZDoom Developers

Forum rules
Before asking on how to use a ZDoom feature, read the ZDoom wiki first. If you still don't understand how to use a feature, then ask here.
Post Reply
bowserknight
Posts: 95
Joined: Wed May 26, 2010 11:10 am

Moving floor up & down with 1 switch? (Hexen settings)

Post by bowserknight »

So I'm making a map in "Zdoom (Doom in Hexen Format)" and was wondering if it's possible with only one switch to make a floor lower, and after pressing it again, make it go back to its original height, and then lower again and so on. Kinda like a lift, but without the automatic part of it, just alternating between up and down with each push of the button. Hope you know what I mean. And if it's not possible, how do I even make it go back to its original position without being a lift or having any adjacent floors?

EDIT: I guess you could also achieve it with a script?
User avatar
Kappes Buur
 
 
Posts: 4183
Joined: Thu Jul 17, 2003 12:19 am
Graphics Processor: nVidia (Legacy GZDoom)
Location: British Columbia, Canada
Contact:

Re: Moving floor up & down with 1 switch? (Hexen settings)

Post by Kappes Buur »

bowserknight wrote: EDIT: I guess you could also achieve it with a script?
Yes, a script is the only way, either ACS or ZSCRIPT.
You'll have to toggle the state of a variable either on or off to achieve
the action (floor lower) and then a reversal (floor raise) and restart.
User avatar
Kappes Buur
 
 
Posts: 4183
Joined: Thu Jul 17, 2003 12:19 am
Graphics Processor: nVidia (Legacy GZDoom)
Location: British Columbia, Canada
Contact:

Re: Moving floor up & down with 1 switch? (Hexen settings)

Post by Kappes Buur »

No reply in over two weeks,
so I don't know if he has worked it out for himself or if he is stumped :D

In any case, I had occasion to fiddle with this idea to move the floor and
ceiling of two sectors and came up with this

Post Reply

Return to “Mapping”