Page 1 of 1
[2.0.19] Detect whether a cargo-pod LuaEntity has a player inside
Posted: Sat Nov 16, 2024 8:01 pm
by thesixthroc
I believe there is no way currently.
Re: [2.0.19] Detect whether a cargo-pod LuaEntity has a player inside
Posted: Mon Dec 30, 2024 11:21 pm
by Rseding91
I've changed get_passenger() to give the character for cargo pods for the next release.
Re: [2.0.19] Detect whether a cargo-pod LuaEntity has a player inside
Posted: Tue Dec 31, 2024 2:18 pm
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?
Re: [2.0.19] Detect whether a cargo-pod LuaEntity has a player inside
Posted: Tue Dec 31, 2024 3:20 pm
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.