I'm trying to create a virtual channel called "StintTime" to serve as a driver stint timer. I'm attempting to pull the getUptime() command to pull the time the unit has been powered up (divided by 60,000 to convert to minutes). This is my first time I've tried creating a Virtual Channel so naturally I'm screwing it up. Does anyone have an idea what the trouble may be? RCP3 on 2.14.0
timerId = addChannel(“StintTime”,1,0,0,250,”min”)
function drivetime()
local time = getUptime()/60000
setChannel(timerId, time)
end
setTickRate(30)
function onTick()
drivetime()
end
[lua] Startup script error: ([string "timerId = addChannel( 201cStintTime 201d,1,0,0,250, 201dmin 201..."]:1.0: malformed number near '201cStintTime')
[lua] Failure: Failed to load script
Virtual Channel help please
-
- Posts: 17
- Joined: Sun Dec 27, 2015 12:55 am
- Location: Freehold, NJ