Can u help me about Colliders as Triggers ?

Hello I use Colliders as Triggers but I need help I have trigger for car enter/exit system and ı have openable door too but if I in door trigger ı push “e” and I enter car.(If I in enter/exit car system ı push e and ı enter car).ı don’t wanna enter car in door trigger can u help me pls and I am sorry for my bad english have a nice day.

Create a bool InDoorTrigger, and set it to true in the door OnTriggerEnter, and false in OnTriggerExit.

Then in your code for pressing e, check the InDoorTrigger and don’t enter the car if InDoorTrigger is true.

Hope this helps,
-Larry