Hi
Is there a way(a call) to get the max available tractive effort at the current speed of a locomotive in lua, that is easier than writing a code that opens the tractiveffortvsSpeed.dcsv file and reads from there?
LUA function to get the max tractive effort at current speed
Moderator: Moderators
Re: LUA function to get the max tractive effort at current speed
As i see it's another thing that's not possible in this game 
Re: LUA function to get the max tractive effort at current speed
You can call the locomotives current speed by " Call("GetSpeed") " and its current tractive effort by " Call("GetTractiveEffort") ". Theres a more full list of all the available calls here http://forums.uktrainsim.com/viewtopic. ... a&start=15 although there have been a few more added since that list was created
regards
Edward
regards
Edward
Re: LUA function to get the max tractive effort at current speed
I can get the current tractive effort with "Accelerometer" control value too, but i need the current MAX available tractive effort.
Re: LUA function to get the max tractive effort at current speed
Don't think that's at all possible
Edward
Edward
- DaveDewhurst
- Very Active Forum Member
- Posts: 1994
- Joined: Wed Nov 28, 2007 10:21 am
- Location: Birkenhead
- Contact:
Re: LUA function to get the max tractive effort at current speed
If you only have a manageable amount of points in your csv file t wouldn't take too much just to have them stored in the script would it?
Dave
Dave