Add Vehicle to on_player_driving_changed_state

Post Reply
zackman0010
Inserter
Inserter
Posts: 36
Joined: Wed May 18, 2016 8:34 pm
Contact:

Add Vehicle to on_player_driving_changed_state

Post by zackman0010 »

I am currently trying to create a new PvP scenario, one that relies heavily on walls. I would like to be able to detect if a player is trying to jump over a wall by using the fact vehicles teleport players on entry/exit. Currently, my only option is to do a search around the player for any entity where type=="car", but this may not be accurate if there are multiple vehicles around the player. If the vehicle the player was entering/exiting would be included in the on_player_driving_state event, that would make use cases such as this much easier.

Rseding91
Factorio Staff
Factorio Staff
Posts: 13209
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: Add Vehicle to on_player_driving_changed_state

Post by Rseding91 »

Added for 0.16.
If you want to get ahold of me I'm almost always on Discord.

Post Reply

Return to “Implemented mod requests”