A god-mode player with no character can still enter vehicles and travel with them, and the vehicle is visible through player.vehicle, but vehicle.passenger is nil. As far as I can tell, there's no way to assign a god-mode player to a vehicle.
I assume multiple god-mode players can follow a single vehicle, so maybe entities should have a writable "observer" field which lists all players for whom player.vehicle would return that entity. Alternatively, allowing the player.vehicle field to be writable would solve this as well (but might conflict with handling of passengers).
Allow assigning god-mode players to vehicles
-
- Long Handed Inserter
- Posts: 90
- Joined: Sat Jan 21, 2017 12:01 am
- Contact:
Re: Allow assigning god-mode players to vehicles
Added for 0.15.
I also found and fixed a problem with the logic in entering/exiting vehicles around this as well.
I also found and fixed a problem with the logic in entering/exiting vehicles around this as well.
If you want to get ahold of me I'm almost always on Discord.
-
- Long Handed Inserter
- Posts: 90
- Joined: Sat Jan 21, 2017 12:01 am
- Contact:
Re: Allow assigning god-mode players to vehicles
Sweet, thanks.