Please or Register to create posts and topics.

Elevator won't move

PreviousPage 2 of 2

Man, I don't know the complete scene you are creating, so it's difficult to be of more help :D

If you actually need it to go backwards, just use the output StartBackwards although remember that you need to set a non-zero value for the property "New train speed" into EACH of the path_tracks involved in the train's movement for this output to work. I've used many times this output and works out great ;)

ImageImageImageImageImageuseful tools and stuff here on TWP :thumbup:
[spoiler]ImageImageImageImageImage[/spoiler]

That would be a good idea but I need the train to be going normal speed until it stops, then when it starts coming down go faster, so if I used the new train speed it will make it fast both times...

Also I was editing my post while you were creating one :lol: , I attached the updated file in my previous post so you can play it and see the sort of thing I'm trying to do.

Dr.Toaster Waffles wrote:
EDIT: Now this is really strange...when I turn on developer 2 and pass the path_track that changes the speed, it writes that the train's speed has been set to -300 when I have 550 as the speed change. And the speed doesn't actually change at all, just keeps going at 300.

Hmmm... about this I know why it didn't work. You set this change of speed into the path track no. 10... but if you remember, when I edit your system after the first problem (elevator didn't move at all) I set as "Next Stop target" in the bottom path_track the topmost one called number 11, therefore your train didn't pass through path no. 10 :D

Try setting as "Next Stop Target" the following path to your bottom one ;) (I think the bottom was no. 0, so set as next the no. 1). This way I think your train will pass through all of them to the top; if you set the "AddOuput" output into the last-top path_track after the train has stopped, then when you give it the order to go backwards, it should do it to the new speed, 550. Try it...

ImageImageImageImageImageuseful tools and stuff here on TWP :thumbup:
[spoiler]ImageImageImageImageImage[/spoiler]

One trick with what you're doing: an object in free-fall has roughly constant acceleration, but the best you can do with a func_tracktrain is roughly constant velocity. Try using a phys_convert on the elevator model (or whatever brush the player is colliding with, it'll work on any entity) at the top and watch it fall with perfect physics. :)

Falsi sumus crusto!
josepezdj wrote:
Dr.Toaster Waffles wrote:
EDIT: Now this is really strange...when I turn on developer 2 and pass the path_track that changes the speed, it writes that the train's speed has been set to -300 when I have 550 as the speed change. And the speed doesn't actually change at all, just keeps going at 300.

Hmmm... about this I know why it didn't work. You set this change of speed into the path track no. 10... but if you remember, when I edit your system after the first problem (elevator didn't move at all) I set as "Next Stop target" in the bottom path_track the topmost one called number 11, therefore your train didn't pass through path no. 10 :D

Try setting as "Next Stop Target" the following path to your bottom one ;) (I think the bottom was no. 0, so set as next the no. 1). This way I think your train will pass through all of them to the top; if you set the "AddOuput" output into the last-top path_track after the train has stopped, then when you give it the order to go backwards, it should do it to the new speed, 550. Try it...

Thank you! I never checked my path_tracks. I'll try this later today.

@FelixGriffin: I would do that, but I'm not exactly trying to give it the effect that it's falling, more so that something went wrong with the elevator and now it's traveling at a dangerously high speed. But thank you still!

Alright, well, thanks! Works fine now. Another problem was that the maximum speed of the train was set to 300, so I had to change that too.

But the bug is still occuring, and it's really starting to get on my nerves.

That output I told you to use (AddOuput > speed 550) was for changing the max speed keyvalue of your func_tracktrain... I insist in what I told you in steam: get rid of the scripts and control the whole system yourself ;)

If that left bug is that the player can almost get out of the elevator when it is falling or going backwards, why don't you parent a disabled func_brush textured with playerclip to it, and you enable it when the elevator starts backwards? There's already one at the bottom part of the elevator shaft shaped like the elevator.

ImageImageImageImageImageuseful tools and stuff here on TWP :thumbup:
[spoiler]ImageImageImageImageImage[/spoiler]

But the player would get stuck in the player clip if they were standing in it while it was being enabled...

With regard to the clipping problem, I think all you need to do is to parent the "elevator_doorclose_playerclip" entity to the "elevator_1" func_tracktrain. (The names are from "departure_elevator_a4_logic.vmf" but they are probably the same everywhere.) That way, the barrier moves with the player so they can't get stuck in it. Remember to disable it again when you want the player to get out.

elevator parts.png
Sendificate series: Sendificate | A Beam Too Far | Airtime | 302
Other Portal 2 maps: Medusa Glare
Portal 1 maps: Try Anything Twice | Manic Mechanic
HMW wrote:
With regard to the clipping problem, I think all you need to do is to parent the "elevator_doorclose_playerclip" entity to the "elevator_1" func_tracktrain. (The names are from "departure_elevator_a4_logic.vmf" but they are probably the same everywhere.) That way, the barrier moves with the player so they can't get stuck in it. Remember to disable it again when you want the player to get out.

:potd: :potd: :potd: :potd: :potd: :potd:

I can't express my gratitude. Thank you very much!

PreviousPage 2 of 2