Ask about ACS, DECORATE, ZScript, or any other scripting questions here!
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.
by Drake Raider » Wed Jul 11, 2018 1:22 pm
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?
-

Drake Raider
- Currently working on Blanket Doom
-
- Joined: 18 Jul 2008
- Location: Plane of thought.
-
by Tormentor667 » Wed Jul 11, 2018 2:51 pm
I might need that as well
-

Tormentor667
- needs more detail
-
- Joined: 16 Jul 2003
- Location: Germany
-
by Apeirogon » Wed Jul 11, 2018 3:14 pm
Just to be sure, you use
- Code: Select all • Expand view
a_jumpif( (ceilingz - floorz) == 144, state name)
-
Apeirogon
- I have a strange sense of humour
-
- Joined: 12 Jun 2017
by Drake Raider » Wed Jul 11, 2018 8:18 pm
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.
-

Drake Raider
- Currently working on Blanket Doom
-
- Joined: 18 Jul 2008
- Location: Plane of thought.
-
by Ichor » Thu Jul 12, 2018 8:50 am
Have you tried using one > instead of two?
Last edited by
Ichor on Fri Jul 13, 2018 7:15 am, edited 1 time in total.
-

Ichor
- The fun cannot be halted
-
- Joined: 23 Jul 2003
by Drake Raider » Thu Jul 12, 2018 9:07 pm
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.
-

Drake Raider
- Currently working on Blanket Doom
-
- Joined: 18 Jul 2008
- Location: Plane of thought.
-
Return to Scripting
Who is online
Users browsing this forum: No registered users and 1 guest