Updated Lua Scripting (markdown)

This commit is contained in:
rusefillc 2022-07-28 09:02:45 -04:00
parent d82a47da86
commit 62d051b8fe
1 changed files with 3 additions and 3 deletions

View File

@ -404,11 +404,11 @@ end
# set sensor value # set sensor value
```lua ```lua
vssSensor = Sensor.new("VSS") vssSensor = Sensor.new("VehicleSpeed")
function onTick() function onTick()
vssSensor : set(90) vssSensor : set(90)
val = getSensor("VSS") val = getSensor("VehicleSpeed")
print ("VSS " ..getSensor("VSS")) print ("VSS " .. val)
end end