func_tracktrain Created 21 years ago2003-12-20 11:38:07 UTC by high_voltage high_voltage

Created 21 years ago2003-12-20 11:38:07 UTC by high_voltage high_voltage

Posted 21 years ago2003-12-20 11:38:07 UTC Post #8532
I've made a train that similar to the one in HL that has to appear from the tunnel to the left of a station, stop at the platform, wait until the player has entered a trigger area (boarded the train), and then zoom off to the right. I think i'm on the right lines with a func_tracktrain and 3 path_corners, but there seem to be a half dozen other possibilities.
Any info on how to do this?
Posted 21 years ago2003-12-20 12:24:07 UTC Post #8543
Func_train will also work... If you want your train to rotate and bank left and right as it rotates you will need a func_tracktrain that works with path_tracks instead of path_corners. I didn?t understand the zoom of thing but well, you set the train in the left tunnel and trigger it. To make it stop at any location you should look at the properties of the path_track and set them to "Wait for retrigger" flag or something like that. Then you trigger it again and it will work again. Hope this helps.
Posted 21 years ago2003-12-20 12:26:11 UTC Post #8544
Oh, the flag was "Disable train", I think.
Posted 21 years ago2003-12-20 12:28:27 UTC Post #8545
Just took a look at one train of mine... Well, that doesn?t work. What you need to do is to trigger the own train to make it stop and work. Each time you trigger it it switches its state. To make this happen at determined points just look at the "Trigger on pass" field on the path_track and trigger the train from there or trigger a multimanager triggering the train (I did it this way, can?t remeber why).
Posted 21 years ago2003-12-21 07:33:13 UTC Post #8690
ok i'll try with path_tracks
Posted 21 years ago2003-12-21 08:29:38 UTC Post #8706
hmm this is difficult
the train comes in fine but doesn't stop at the path_track in front of the station (largely because i don't know what settings the path track should have), but when i fire the trigger_once that should send it off down the tunnel, it stops wherever it is.

Or can i trigger the train directly to make it stop and start?
Posted 21 years ago2003-12-21 08:40:32 UTC Post #8712
don't forget to give the track train an origin!

as you would to a rotating door, the origin in the train acts as the point of reference with the path_tracks
Posted 21 years ago2003-12-21 12:47:01 UTC Post #8736
O.k.
First do what Kol says. He?s wise.
Then consider that whenever you trigger the train it would stop or start moving again, depending on the state it was so if you trigger the train when it?s moving it will stop. This is the answer to all.
If you want a button to only trigger the train ON you should use some sort of trigger_relay.
If you want the train to stop at a determined point do this:
1-Create a multimanager. Name it and make it trigger the name of your train.
2-Go to the func_track that you choose to stop (or the previous, or the following, honest, don?t remember!).
3-Look at the trigger on pass or something like that field.
4-Put the multimanager?s name there.

This way you trigger the ON train to OFF when it passes through a point. Needless to say that it must be retriggered in order to get it to work.
I had a hard time with this, but results are good. By the way, don?t try to have scientists or barneys on those trains... Look strange.
Posted 21 years ago2003-12-21 15:32:42 UTC Post #8745
Aw, thanks.

The scientist and barney thing is another bug.. :(

You'll have to wait till hl v1.1.1.1 ;)
This error did not exist in hl v 1.0.0.5 -yes i'm that old :D
Posted 21 years ago2003-12-21 16:04:01 UTC Post #8749
ah got it now, ta
(of course i put in an origin brush)
Posted 21 years ago2003-12-21 18:40:16 UTC Post #8781
I HATE that bug. Do you think Valve will fix it???.
Posted 21 years ago2003-12-22 06:25:09 UTC Post #8845
Yes, spirit has kind of fixed it.. its still not a problem with hl v1.0.0.5 ;)
Posted 21 years ago2003-12-22 11:16:02 UTC Post #8876
Let?s pray they fix all those things in the incoming best game of the entire universe (we all know what we?re talking about). By the way and to avoid spam, I know it?s possible to change levels with trains and since you, Kol, are the master on level changing tutorials I?d like to ask you how you do it so... How you do it?.
Posted 21 years ago2003-12-22 16:11:44 UTC Post #8918
Look out for part 2 of my tut. ;)

But if you can't wait till next year ;)

Here's a clue:
Global Entity names...
You must be logged in to post a response.