Tracktrains... Trying to make it two way Created 20 years ago2003-11-24 22:28:05 UTC by Marlborometal Marlborometal

Created 20 years ago2003-11-24 22:28:05 UTC by Marlborometal Marlborometal

Posted 20 years ago2003-11-24 22:28:05 UTC Post #5565
Hi!!!.
Recently I came to a new problem in my mod... I did an area that the player needs to cross on a moving cab... But it has to work both ways, that is, to go and to come back.
The cab is a func_tracktrain since I need it to rotate in the path twists. The "Go to" path is working right but I don?t know how to reverse the train since it has to be non player-controllable.
Is there a way to make the path reverse or will I have to make 2 separate paths?. If I have to do 2 paths, how do I make the train stop at the end of one track and then keep going to the other when activated???.
Thanks.
Posted 20 years ago2003-11-25 09:56:12 UTC Post #5589
As nobody seemed to be able to reply :P I tried something myself... Now I can make a 2 way train but it turns when it has to do the comeback way (I wonder if that "Reverse branch" flag in the path_track has any use...) and turns again when has to do the "Go" way...
For everyone who wants to know how to do it there it is:
-Make the func_tracktrain.
-Make the path with path_tracks.
-Make the reverse path with path_tracks and link them together (link first and last of each one).
-This way the train will do an infinite movement among the two destinations... To make it stop simply trigger the train in the path_track you want the train to stop. It will stop itself. This assumes you have a way of triggering it back to work, of course.
Posted 20 years ago2003-11-25 13:59:42 UTC Post #5612
hope you solve that problem!
Posted 20 years ago2003-11-28 01:10:07 UTC Post #5856
I solved it... With a little of imagination and reestructuration. Just made the main path end in both sides with a circle path... The train moves along, circles, moves in the other direction, circles, moves again... And so on.
I also found a way of making it stop and was as simple as... Triggering it!!.
Now it works, looks nice and takes ages to compile :confused:.
You must be logged in to post a response.