|Category||Farming Simulator 2009|
|Thomas H. (Patar)||07.04.2010 01:41|
|Hello, i need to have the graintank fillstate as percent, like its in the down right corner. i must have the value wich is tere, also if tthere are three trailers. don't know how i can become this value with math. but you surely have a variable which is used in the renderText line from the state in the corner... can you please tel me this variablename?
|Manuel Leithner - GIANTS Software||09.04.2010 02:46|
|you can use the function getAttachedTrailersFillLevelAndCapacity(). it's part of the vehicle class.
so if you want to use this in your tractor script just call the function.
local fillLevel, capacity = self:getAttachedTrailersFillLevelAndCapacity()
the function returns nill if there's no trailer attached
|Torsten Pfau (Unknown)||10.04.2010 05:40|
I don´t where i get this link from but it´s a fantastic tractor to tune. :-)
Could someone see my post in this forum? It looks a little bit unvisible to me. :-)
|Thomas H. (Patar)||11.04.2010 13:59|
|Thanks face, i thin you've already seen my mo in wich i use this function. Sven777b sad me this function, but now i see you know the same, thanks.
Note: Log in to post. Create a new account here.