Updated Lua Scripting (markdown)
This commit is contained in:
parent
d82a47da86
commit
62d051b8fe
|
@ -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
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue