Author Topic: Train mod plans  (Read 5258 times)


Yes, a player gets in the way, then what?
make it come to a complete halt, give warnings, etc.

Oh, just realize how it could be done.

The train would look for a brick x position down, left and right, and get that bricks object # and record them in a "Lasttrack" variable. Then, if the train cannot find a track to be aligned with, it will try to re-align itself! Also a "lastdirection" variable.

make it come to a complete halt, give warnings, etc.
So a train hitting a player will make the train stop, what?!
« Last Edit: June 04, 2009, 08:58:28 PM by Kalphiter »

So a train hitting a player will make the train stop, what?!

Have raycasts fired really far into the distance and if there is a person in the way begin slowdown.

Have raycasts fired really far into the distance and if there is a person in the way begin slowdown.
No, it is all human controlled. What I was saying is that a human can stop a multi-ton vehicle?

how about you just have it check every second "Ok, which direction am I closest to pointing in right now" then it points in that direction. Autocorrecting.

how about you just have it check every second "Ok, which direction am I closest to pointing in right now" then it points in that direction. Autocorrecting.
We don't want that. Only problem with /aligntrain [direction] is that you HAVE to have the wheels straight, not turned.

how about getting hit by a train kills you?

how about getting hit by a train kills you?
onCollision would still collide, You'd need a pre-train collision box that kills the player. Good idea though.

For tracks I suggest you ask Trader for help. He made a custom collision for the vault door so I think he knows how.

For tracks I suggest you ask Trader for help. He made a custom collision for the vault door so I think he knows how.
Kaje did that.


You could make custom bricks for the tracks that would have collision boxes so that the train could only go straight.

Wait, can you have more then one collision box?

Wait, can you have more then one collision box?

lods trough -1 to -8 are reserved for collision meshes.