[2.0.13] on_player_driving_changed_state doesn't trigger when entering remote driving but it does on exit?
Posted: Sun Nov 03, 2024 1:58 pm
I would expect to see on_player_driving_changed_state triggered for both entering and exiting remote driving, but I only see it for exiting it seems?
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:
I only see this print when exiting remote driving, not entering remote driving.
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)