Triggering func tracktrain


Propaganda
11-07-2006, 09:34 AM
I am trying to use a trigger multiple to start a func tracktrain. Do I need to target the actual func tracktrain in my trigger, or the initial path track entity? The func tracktrain is teleported to the path track. Right now I have the trigger set to the first path track:

My output: On trigger
Target Entity: path1 (the first path track)
Target Input: enable path
Delay: 0

[SAS]==Dirty_Harry
11-07-2006, 10:35 AM
Yes you need to trigger the func_tracktrain not the path track.

Then in the func_tracktrain you need to set the "First Stop Target" the same as the name of your first path track.

Then in the properties of your first path track you need to enter the name of your second path track under "Next Stop Target" etc.

Another way of triggering it is to use a logic auto that way if it's something that is going to run for the duration of the map it can be triggered OnMapSpawn or OnNewGame and doesn't rely on a player to trigger it.


So the output would look something like this

OnTrigger
Target Entity Name (name of func_tracktrain)
SetSpeed
300

Hope this helps :D

Propaganda
11-07-2006, 12:10 PM
So if I am targeting the func tracktrain would my input be "start forward"?

[SAS]==Dirty_Harry
11-07-2006, 12:13 PM
Would suggest just trying it and then running a fast compile to see if it has worked, I have only used the "Setspeed" input so whithout trying it I honestly can't say, but "StartForward" sounds like it should work.

Propaganda
11-07-2006, 01:37 PM
Thanks for the help Harry I will play around a bit with it.

[SAS]==Dirty_Harry
11-07-2006, 01:41 PM
No problem m8 :D

Someth|ngW|cked
11-07-2006, 02:23 PM
If it is a tracktrain that starts moving once the map starts and continues throughout the map i would use a logic_auto with the output OnMapSpawn, StartForward, that is what i used for the tracktrains controling the movement of my mortar systems in my maps

Propaganda
11-07-2006, 02:28 PM
Its not something I want to run all the time though. I want it to run every so often.

Propaganda
11-07-2006, 04:48 PM
Ok I tried almost everything here. I have a trigger multiple set to start a func tracktrain. The trigger has been set to setspeed and also to resume, but no matter which the tracktrain starts on it's own even with no one in the trigger. There is nothing on the func tracktrain brush to disable at start. Any ideas?

Edit: Ok I set initial speed to 0, now it doesnt start until the trigger, but I am having an issue moving the func tracktrain back to it's initial state in order to be re triggered.

Furyo
11-07-2006, 05:09 PM
There should be a field in the first path_track options to have the tracktrain "teleport to this destination" when it reaches the end of the network. Just put it to "yes"

Propaganda
11-07-2006, 06:04 PM
I tried that didn't seem to work. I did something alot more creative and time wasting by fading the model, making it go back to the first path, then restopping it, seems to work :confused:

Ace_McGirk
11-08-2006, 01:49 AM
on the first path_track, have it set the train speed(new train speed) to "0", then you restart it with the setspeed.

also go to flags tab and check the "teleport to THIS path_track"

all this on the first path track

Propaganda
11-08-2006, 10:53 AM
Thanks for everyones suggestions, working smooth now. :)

Day of Defeat Forum Archive created by Neil Jedrzejewski.

This in an partial archive of the old Day of Defeat forums orignally hosted by Valve Software LLC.
Material has been archived for the purpose of creating a knowledge base from messages posted between 2003 and 2008.