while true do
e, s, v = event.pull()
if e == "OnVehicleEnter" then
print(v)
computer.beep(1)
v.isSelfDriving = false
local targets = v:getTargets()
for i, t in ipairs(targets) do
if t.wait == 3.0 then
t.speed = t.speed * 2
print(t.pos, t.speed, t.wait)
end
end
v:setTargets(targets)
end
end
3. Enter the scanner with a vehicle (I was trying with tractor).
**Additional context**
dev build 147
[SMMDebug_2021-9-12_9-49-18.zip](https://github.com/Panakotta00/FicsIt-Networks/files/7149383/SMMDebug_2021-9-12_9-49-18.zip)
Describe the bug Calling WheeledVehicle.SetTargets CTDs the game.
Provide the Debug-File you can generate with SMM.
To Reproduce Steps to reproduce the behavior:
event.listen(scanner)
while true do e, s, v = event.pull() if e == "OnVehicleEnter" then print(v) computer.beep(1) v.isSelfDriving = false local targets = v:getTargets() for i, t in ipairs(targets) do if t.wait == 3.0 then t.speed = t.speed * 2 print(t.pos, t.speed, t.wait) end end v:setTargets(targets) end end