Page 1 of 1

Height of Room check

Posted: Wed Jul 11, 2018 12:22 pm
by Drake Raider
Alright. I have an actor that's supposed to only do a certain action in rooms of the correct height. So I have a A_jumpif with ceilingz-floorz but it never triggers no matter what I set the target value to. Any guidance?

Re: Height of Room check

Posted: Wed Jul 11, 2018 1:51 pm
by Tormentor667
I might need that as well

Re: Height of Room check

Posted: Wed Jul 11, 2018 2:14 pm
by Apeirogon
Just to be sure, you use

Code: Select all

a_jumpif( (ceilingz - floorz) == 144, state name)

Re: Height of Room check

Posted: Wed Jul 11, 2018 7:18 pm
by Drake Raider
Correct, but with greater than rather than equals. Typing on phone away from laptop so hard to be sure. But it just refuses to pass. I use 72. I tried >= 72 and >> 71 with no go.

Re: Height of Room check

Posted: Thu Jul 12, 2018 7:50 am
by Ichor
Have you tried using one > instead of two?

Re: Height of Room check

Posted: Thu Jul 12, 2018 8:07 pm
by Drake Raider
Yup... Turns out that was the last one. Just double checked and that's what the comment said.

EDIT: Got it fixed. I was just estimating room heights incorrectly. Sorry folks.