Moving props from A to B?

figge

Newbie
Joined
May 15, 2003
Messages
727
Reaction score
0
Hi.
I'm making a DM map, and i wan't to have a train in it, that moves.
How do i make the train prop move from one location to another, and then 'teleports' to it's orginal direction and start over again.

So:

Start at pos A
Go in x Km/h to location B
Waits there for x seconds
Teleports to A
Go in x Km/h to location B
 
I am playing around with a brush with func_movelinear on it now with a train parented to it. It might also be worth looking into func_traintrack.

I will tell you if I have any luck because I am looking to do the same thing. (So any mods are welcome to delete the last topic I made. :o )
 
For some reason I can't seem to edit that last message.

Here's what I've come up with so far.

prop_dynamic has func_movelinear as it's parent.
logic_timer sets off func_movelinear

This makes the train move from one end to the other.

when func_movelinear is fullyopen I make i make it set it's position back to 0. I was hoping to make this warp it back to the start but for some reason it makes it go back at the same speed. I don't seem to be able to change the speed of the func_movelinear either.

What I am going to try and do now is basically make the prop_dynamic switch between parents to get it back to the start where I will re-enable the timer. This is probably a waste of time though so I will see if I can get func_traintrack or whatever to work more easily.
 
I'm doing one with func_traintrack at the moment.
 
Back
Top