ZS move floor/ceiling relative to starting height?

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.

Please bear in mind that the people helping you do not automatically know how much you know. You may be asked to upload your project file to look at. Don't be afraid to ask questions about what things mean, but also please be patient with the people trying to help you. (And helpers, please be patient with the person you're trying to help!)

Post a reply

Smilies
:D :) :( :o :shock: :? 8-) :lol: :x :P :oops: :cry: :evil: :twisted: :roll: :wink: :geek: :ugeek: :!: :?: :idea: :arrow: :| :mrgreen: :3: :wub: >:( :blergh:
View more smilies

BBCode is OFF
Smilies are ON

Topic review
   

Expand view Topic review: ZS move floor/ceiling relative to starting height?

Re: ZS move floor/ceiling relative to starting height?

by Graf Zahl » Sat Nov 09, 2019 2:34 am

A sector plane has no 'height', due to slopes. You have to call ZAtPoint to get the height from a reference point.

Re: ZS move floor/ceiling relative to starting height?

by Matt » Sat Nov 09, 2019 2:05 am

For the earlier thing I'd use a line trace and use the sector it hit.

For the implementation I'm asking this for, I'm picking a random sector from a list.

Re: ZS move floor/ceiling relative to starting height?

by Cherno » Fri Nov 08, 2019 8:12 pm

How would you refer to the sector in zScript?

ZS move floor/ceiling relative to starting height?

by Matt » Fri Nov 08, 2019 8:00 pm

Is there any ZScript function that does this natively, or is there any function that can reliably get a starting height from which to derive a MoveFloor/MoveCeiling target?

I can MoveFloor/Ceiling if I have a convenient spot on the map as a reference point and get the starting height from that, but I have no idea what to do if there is no such reference point and all I want to do is just move the sector in question by X number of units up or down.

Top