Moving a sector back to it's original position at map start?

Archive of the old editing forum
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.
Locked
User avatar
Amuscaria
Posts: 6634
Joined: Mon Jul 26, 2004 12:59 pm
Location: Growing from mycelium near you.

Moving a sector back to it's original position at map start?

Post by Amuscaria »

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?
User avatar
Phobus
Posts: 5984
Joined: Thu May 05, 2005 10:56 am
Location: London
Contact:

Re: Moving a sector back to it's original position at map st

Post by Phobus »

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.
User avatar
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

Post by Salad Viking »

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.
User avatar
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

Post by NeuralStunner »

You may already know about [wiki]GetSectorFloorZ[/wiki]. [wiki]Floor_MoveToValue[/wiki] would be especially useful with that.
User avatar
Amuscaria
Posts: 6634
Joined: Mon Jul 26, 2004 12:59 pm
Location: Growing from mycelium near you.

Re: Moving a sector back to it's original position at map st

Post by Amuscaria »

Ok, I thought so. Thanks. :)
User avatar
Phobus
Posts: 5984
Joined: Thu May 05, 2005 10:56 am
Location: London
Contact:

Re: Moving a sector back to it's original position at map st

Post by Phobus »

MoveToValue eh? Never knew about that. Either I've not been keeping up, or just haven't found/needed it. Looks useful though!
Locked

Return to “Editing (Archive)”