Code: Select all
set_driver(driver)
Sets the driver of this vehicle.
Parameters
driver :: LuaEntity or LuaPlayer: The new passenger or nil to eject the current driver if any.
Note: This differs over LuaEntity::set_passenger in that the passenger can't drive the vehicle.
[i]Can only be used if this is Vehicle[/i]