Allow assigning god-mode players to vehicles

Post Reply
NiftyManiac
Long Handed Inserter
Long Handed Inserter
Posts: 90
Joined: Sat Jan 21, 2017 12:01 am
Contact:

Allow assigning god-mode players to vehicles

Post by NiftyManiac »

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).

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

Re: Allow assigning god-mode players to vehicles

Post by Rseding91 »

Added for 0.15.

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.

NiftyManiac
Long Handed Inserter
Long Handed Inserter
Posts: 90
Joined: Sat Jan 21, 2017 12:01 am
Contact:

Re: Allow assigning god-mode players to vehicles

Post by NiftyManiac »

Sweet, thanks.

Post Reply

Return to “Implemented mod requests”