• Train looping?
    11 replies, posted
Ok so I have been editing a map on a server I play on in gmod and decided a train station with no trains is just ridiculous. So I decided I would add in 4 trains, one to each track, but Cant seem to figure out how to make them loop back randomly to the track that they are on? does anyone have any ideas on how to do this?
What kind of map is this? RP? Sandbox?
TTT
it depends on the track lay out if its a loop set the next path in the path_track entity to the first if the track goes off into a tunnel use a teleport entity on a random timer :)
how exactly would one set it that way? i know its path_track for the entity itself. but what else do I do. is there a thing I check or something? detailed instructions would be very appreciated.
ok here goes start with the path_track name the 1st one pt_1 then Crtl drag to make another the name should update to pt_2 and the next pat track in pt_1 should show pt_2 lay out a nice loop and on the last pat_track name the next key value pt1 to close the loop :) then make a func_tracktrain using nodraw texture then parent the model of the train to the func_tracktrain the model has to be a prop_dynamic or prop_dynamic override so it will move, make sure the model is facing the right way and in the flags of the func_tracktain set start on spawn or use a trigger to get the train moving :) hope this helps :) Edit found a tutorial on YouTube if yo like to watch vids [url]https://www.youtube.com/watch?v=wvpwQRlKuHE[/url] :)
can the same method be applied to a train prefab?
if the train is make of brushes tie the brushes to the func_tracktrain instead of using a nodraw tex
[QUOTE=taz0;49725512]if the train is make of brushes tie the brushes to the func_tracktrain instead of using a nodraw tex[/QUOTE] But obviously making sure they're all part of one big func_tracktrain and not a load of separate ones grouped together. I know it doesn't usually need to be said, but you never know. I had this problem with someone who didn't listen to me properly lol
if your train is like an engine and carriages don't make them all one big func_tracktrain make them separate ones or they might look weird when going a round curves ir engine is func_tracktrain carriages are func_tracktrain each :)
oh no there wont be any curves. just 4 seperate tunnels that are all straight lines. was just wondering how to accomplish what im after after i attempted it and all that happened was one of the doors cars went moving down the track instead of the whole train XD
when you select ur prefab group the brushes so theres only one object the tie it to a func_tracktrain
Sorry, you need to Log In to post a reply to this thread.