[Raiguard] [2.0.13] No LUA event triggers when player drives remotely

Zaflis
Filter Inserter
Filter Inserter
Posts: 521
Joined: Sun Apr 24, 2016 12:51 am
Contact:

[Raiguard] [2.0.13] No LUA event triggers when player drives remotely

Post by Zaflis »

There are mods that need to be informed runtime when player enters a vehicle. I have my VehicleSnap listen to a lot of different driving and surface related events, but none of them trigger when player enters a tank from remote view. However it does trigger when player leaves it...

I would assume the related event to be added here is: on_player_driving_changed_state
Oarc
Fast Inserter
Fast Inserter
Posts: 122
Joined: Sun Sep 18, 2016 2:04 pm
Contact:

Re: [2.0.13] No LUA event triggers when player drives remotely

Post by Oarc »

+1 on this!
User avatar
raiguard
Factorio Staff
Factorio Staff
Posts: 665
Joined: Wed Dec 13, 2017 8:29 pm
Contact:

Re: [Raiguard] [2.0.13] No LUA event triggers when player drives remotely

Post by raiguard »

This is a bit tricky; Lua events can cause all sorts of wacky changes to the game state, so raising an event requires us to implement a whole lot of checks to make sure that the Lua code didn't i.e. delete the whole surface as a reaction to the player exiting a vehicle. Unfortunately, that means this is a relatively low priority.
Don't forget, you're here forever.
Post Reply

Return to “Assigned”