Is there a way to go from controlling a first person character to ,upon being triggered, controlling a car.
Deactivate the player’s mesh object upon entering the trigger.
When “enter car” button is pressed check if the player game object is close to the car.
Deactivate the player game object (SetActive(false)
Change a bool on the car object that makes the car start responding to user input and makes the camera follow the car.
You are now in control of the car.
When “exit car” button is pressed to leave the car reposition the player game object close to the car.
Reactivate the player game object (SetActive(true)
Change the bool of the car to false again.
You are now in control of the player game object again.