I tested with a spidertron and a train.
Not sure if I was doing something wrong maybe? Or I have an incorrect expectation?
Barebones scenario control.lua I used for just dumping the driving state:
Code: Select all
script.on_event(defines.events.on_player_driving_changed_state, function (event)
log("Player driving changed state")
log(serpent.block(event))
end)