3D elevator problem

Advanced OpenGL source port fork from ZDoom, picking up where ZDoomGL left off.
[Home] [Download] [Git builds (Win)] [Git builds (Mac)] [Wiki] [Repo] [Bugs&Suggestions]

Moderator: Graf Zahl

Locked
User avatar
NeoHippo
Posts: 408
Joined: Tue Sep 13, 2005 0:47
Location: British Columbia Canada

3D elevator problem

Post by NeoHippo »

I have a problem with this map.

Image

Script 1 is executed and the elevator ( just a floor and a ceiling ) rises to the second floor.
After that, scripts 2, 3 and 4 are simply not executed and the elevator will not budge.
Spoiler:
Any help would be appreciated.
User avatar
Graf Zahl
GZDoom Developer
GZDoom Developer
Posts: 7148
Joined: Wed Jul 20, 2005 9:48
Location: Germany
Contact:

Re: 3D elevator problem

Post by Graf Zahl »

Your lines are set to be triggered once only. So they get triggered when you leave the elevator, do nothing due to the lineside check and when you go back on they are no longer active. You need to set them to repeatable and clear the special explicitly in the script.
User avatar
NeoHippo
Posts: 408
Joined: Tue Sep 13, 2005 0:47
Location: British Columbia Canada

Re: 3D elevator problem

Post by NeoHippo »

Graf, thank you for the quick reply.

Setting the lines to repeatable did the trick, although I must admit that I don't understand why I had to do this.

Walking over the first linedef triggered script 1 to move the elevator to the second floor.
Leaving the elevator, the second linedef was crossed but did not trigger script 2 since I crossed it from the front.
Turning around and crossing the linedef from the back should have triggered script 2.
User avatar
Graf Zahl
GZDoom Developer
GZDoom Developer
Posts: 7148
Joined: Wed Jul 20, 2005 9:48
Location: Germany
Contact:

Re: 3D elevator problem

Post by Graf Zahl »

The 'action' that is triggered is the starting of the script, not the elevator move. Even when it does nothing the script is still started successfully and the line special cleared
User avatar
NeoHippo
Posts: 408
Joined: Tue Sep 13, 2005 0:47
Location: British Columbia Canada

Re: 3D elevator problem

Post by NeoHippo »

But of course. It must have triggered either way, since it has to determine if the condition is true or false.

Sometimes my condition seems to be 'en Brett vorm Kopp han' :roll:
Locked

Return to “GZDoom”