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?
Moving floor up & down with 1 switch? (Hexen settings)
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.
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.
-
- Posts: 95
- Joined: Wed May 26, 2010 11:10 am
- 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)
Yes, a script is the only way, either ACS or ZSCRIPT.bowserknight wrote: EDIT: I guess you could also achieve it with a script?
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.
- 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)
No reply in over two weeks,
so I don't know if he has worked it out for himself or if he is stumped
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
so I don't know if he has worked it out for himself or if he is stumped

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