This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm that you accept these cookies being set.

Display time of object
#41
my knowledge of lua is very scarce Sad to do such programming. Thanks
Reply
#42
Map this event script to the fuel level % object. Change 1/1/1 to the object that stores the remaining time text.
Code:
value = event.getvalue()
totaltime = 22 * 60 * 60 -- 22 hours in seconds
remtime = totaltime * value / 100

formattimealt('1/1/1', remtime)
Reply


Forum Jump: