[2.0.19] Detect whether a cargo-pod LuaEntity has a player inside

thesixthroc
Long Handed Inserter
Long Handed Inserter
Posts: 51
Joined: Wed Apr 29, 2020 9:53 pm
Contact:

[2.0.19] Detect whether a cargo-pod LuaEntity has a player inside

Post by thesixthroc »

I believe there is no way currently.
Rseding91
Factorio Staff
Factorio Staff
Posts: 14766
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: [2.0.19] Detect whether a cargo-pod LuaEntity has a player inside

Post by Rseding91 »

I've changed get_passenger() to give the character for cargo pods for the next release.
If you want to get ahold of me I'm almost always on Discord.
User avatar
Quezler
Long Handed Inserter
Long Handed Inserter
Posts: 98
Joined: Fri Mar 25, 2016 6:37 pm
Contact:

Re: [2.0.19] Detect whether a cargo-pod LuaEntity has a player inside

Post by Quezler »

Will there be support from the player's side as well? aka reading player.physical_vehicle & control.vehicle? or only resolvable from the cargo pod's side?
Rseding91
Factorio Staff
Factorio Staff
Posts: 14766
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: [2.0.19] Detect whether a cargo-pod LuaEntity has a player inside

Post by Rseding91 »

I wrongly assumed that was already possible. I've changed LuaEntity::cargo_pod read into LuaControl::cargo_pod read and made it work for players for the next release.
If you want to get ahold of me I'm almost always on Discord.
Post Reply

Return to “Implemented mod requests”