Visa ett inlägg
Gammal 2002-09-05, 07:32   #2
larhel
Member
 
Reg.datum: Nov 2001
Ort: , , Sweden.
Inlägg: 32
Standard

Hello bt,

Well it's not easy but it can be done. You have to create a schedule to make the train go were you wan't. That's the easy part. The problem is to make the train stop at an exact point. You can use the "stop at trigger" event. But depending on the speed of the train, the train can stop anywhere. For the moment there is'nt a easy way to control the speed of the train. You can write your own speed function using SetDCCThrottle function.

Take a look at

www.noangelclan.com/files/files/ScriptMap.ZIP

This zip file contains a script example. The script controls a train on a layout with 2 stations. The train stops at the stations. The layout for which the script is created is also in the zip file.

/Lars


Citat:
quote:
Hello, i am wondering how easy is it in sp3 in trainz to write a script to make the a train stop at station wait for 1 min, the signal light turns green and train goes off again to the next stop??
Does anyone think that junction master is the way to go for non scripters?
thanks
bt

bt
larhel besöker inte forumet just nu   Svara med citat