[2.0.19] Detect whether a cargo-pod LuaEntity has a player inside
-
- 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
I believe there is no way currently.
Re: [2.0.19] Detect whether a cargo-pod LuaEntity has a player inside
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.
Re: [2.0.19] Detect whether a cargo-pod LuaEntity has a player inside
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?
Re: [2.0.19] Detect whether a cargo-pod LuaEntity has a player inside
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.