Page 1 of 1

LUA - getting/updating values for the water in a steam loco tender

Unread postPosted: Sat Jul 25, 2020 5:42 am
by cunningn
Hi folks

A Lua query for any gurus out there. How can I get the amount of water in a steam loco tender and then alter it to simulate filling it up? There doesn't seem to be any function/value in the documented Lua guides that shows this - but it is obviously possible as lots of refueling points and water troughs can do it.

Hope someone can help.
Neil

Re: LUA - getting/updating values for the water in a steam loco tender

Unread postPosted: Tue Jul 28, 2020 3:08 am
by cunningn
Hi Folks

I got an answer on UKTS - haven't tried it yet so I'll post again when I have it working but looks pretty good:

Call("AddTenderWater", value)

Call("GetTenderWaterCapacity")

Call("GetTenderWaterCurrent")

Cheers
Neil