Curt84328 Posted April 23, 2015 Posted April 23, 2015 I know this can be done, but not how. I want to read the current speed of a locomotive and store it as a variable, then later set the locomotive speed back to that speed after stopping. also, I have some steep grades on my layout, and the locomotive slows down. is there a way to keep the actual speed constant?
EASY Posted April 23, 2015 Posted April 23, 2015 Hi Curt84328,1) ... the current speed see wiki..."6. Variables" -> Objektname._CurrentSpeed: Returns the current actual speed of the object in mm / s back (if it is the object is a locomotive, otherwise 0 is returned)2) ...take this to "off"EASY
Henry Posted April 23, 2015 Posted April 23, 2015 try out the zipped file from hereyou must store the current speed into a local variable by the signal. The _trigger event is for the moment to store the speed , so you can later assign the speed from the signal variable to the loco.To get constant speed in steep grades you must deaktivate the automatic speed adjustment in the properties window.regards,Henry
BahnLand Posted April 23, 2015 Posted April 23, 2015 Hello Curtis,for grabbing the current speed of a locomotive and storing it into an event variable look here.Many greetingsBahnLand
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now