Moving a sector back to it's original position at map start?
Forum rules
Before asking on how to use a ZDoom feature, read the ZDoom wiki first. This forum is archived - please use this set of forums to ask new questions.
Before asking on how to use a ZDoom feature, read the ZDoom wiki first. This forum is archived - please use this set of forums to ask new questions.
Moving a sector back to it's original position at map start?
Is there a built-in function that reverts a sector's height back to where it was at the start of the level? Or would I need to somehow extract the values at the beginning of the map and save it into a variable?
Re: Moving a sector back to it's original position at map st
You'd need to know what you want to change it back to I think - there's no way to "set" a sector height that I'm aware of, and you'd need to use the Raise/Lower functions to get things back in place.
- Salad Viking
- Posts: 752
- Joined: Tue Apr 20, 2010 8:58 pm
- Location: In high orbit
Re: Moving a sector back to it's original position at map st
AFAIK, the initial height of sector floors and ceilings are not stored anywhere, so if you want to move a sector back to it's original position, you'll have to either store it as a variable or remember what it was.
- NeuralStunner
-

- Posts: 12328
- Joined: Tue Jul 21, 2009 12:04 pm
- Preferred Pronouns: No Preference
- Operating System Version (Optional): Windows 11
- Graphics Processor: nVidia with Vulkan support
- Location: capital N, capital S, no space
- Contact:
Re: Moving a sector back to it's original position at map st
You may already know about [wiki]GetSectorFloorZ[/wiki]. [wiki]Floor_MoveToValue[/wiki] would be especially useful with that.
Re: Moving a sector back to it's original position at map st
Ok, I thought so. Thanks. 
Re: Moving a sector back to it's original position at map st
MoveToValue eh? Never knew about that. Either I've not been keeping up, or just haven't found/needed it. Looks useful though!
