Page 1 of 1

3D elevator problem

Posted: Fri Nov 26, 2010 23:15
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.

Re: 3D elevator problem

Posted: Fri Nov 26, 2010 23:57
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.

Re: 3D elevator problem

Posted: Sat Nov 27, 2010 1:53
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.

Re: 3D elevator problem

Posted: Sat Nov 27, 2010 8:25
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

Re: 3D elevator problem

Posted: Sat Nov 27, 2010 15:50
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: