Jump to content
Sign in to follow this  
Deg

Getting the Locomotive and boxcars to sit flush with the rails

Recommended Posts

Hi all, so ive been using

rail = position this nearestobject trackID; train setpos [getpos rail select 0, getpos rail select 1, 0.03]

to get the engine to sit on the tracks with setDir which works ok, but there is a spot i want to place the locomotive thats in between 2 track IDs ,and also im trying to get the boxcars to line up with the engine with the attach to command and its kind of a nightmare placing a long train hehe, is there and easier solution to this ? or is there a way i can use the trackID and offset the engine and boxcars from that maybe ? I've seen there was On Track script but the link is dead.

thanks in advance.

Deg.

Share this post


Link to post
Share on other sites

I fixed that DL link if you want to try On Track script.

Really long train might be problematic as rails are nearly never perfectly level.

I think five or six wagons train is longest i have used.

It is also handy when placing stuff on railyards.

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×