Creating an exploding train

GenEn

L1: Registered
Jul 16, 2010
46
54
I'm working on a kind of cart (though I'll call it a train, because it's a standard func_tracktrain) that moves along its rail as usual, but on contact with a player, the train explodes as if it were loaded with explosives.

I've gotten the train running smoothly (following the track, stopping, then looping back around again), but when it makes contact with a player, I'm not sure how to remove the train so that it doesn't look like it's still intact.

Of course, I don't want to permanently kill the train, but rather keep it intact somewhere (or respawn it) so it can continue to run along the tracks.

Does anyone have a suggestion on how to either teleport the train away after impact, or perhaps kill it and respawn it later? I can't find any way to remove the train without permanently killing it.
 

nik

L12: Fabulous Member
Aug 14, 2009
987
564
You could make the trigger on the train output when being touched to teleport to an earlier path_track?
 

GenEn

L1: Registered
Jul 16, 2010
46
54
Like "Teleport to path track?"

examplevi.png


When I tried this, the train kept moving along the same path- I assume it teleported to the same track it was on, or I made a mistake somewhere. Do you happen to know how I could teleport it to an earlier one?
 

nik

L12: Fabulous Member
Aug 14, 2009
987
564
simply fill in the name of the earlier path track to the "parameter override" box
 

GenEn

L1: Registered
Jul 16, 2010
46
54
It's working excellently now! I've never been too sure what the parameter override did, I'll need to look into that. Thanks!
 

nik

L12: Fabulous Member
Aug 14, 2009
987
564
It's mostly for changing the values in an entity through input, basically any input that isn't just "disable/enable/etc"