Page 1 of 1

[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
by Oarc
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:

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)
I only see this print when exiting remote driving, not entering remote driving.

Re: [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 3:10 pm
by Zaflis
Duplicate of my earlier one:
viewtopic.php?f=7&t=118769&p=629136#p629136

Re: [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 8:06 pm
by Oarc
Thanks! Sorry I didn't check for duplicates before posting.