I’ll make it short dont want to waste anyones time i hope someone can give me an idea
but im fairly new to UE only worked on it for 3 months so far
so i created a garage door it detects if the player is near it via a hitbox, if so the door opens
this works perfect
the player can enter a car and drive it
however, the garage door won’t open when the player is inside this car
it will open as soon as i exit the car and it will close the moment you enter the car (you’re still standing inside the hitbox)
is there a way to easily integrate the car into this BP?
How is “enter the car” implemented? Do you move the player Pawn to another location or do you de-spawn the character, and possess the car?
Possible solutions could be:
expand the hit box to be bigger, if the problem is that the player pawn is attached to the car seat and thus outside the box
change the cast above, to instead cast to Pawn, and then try to get the Controller from that and cast to PlayerController, and if that works, do the opening bit
implement some interface on your player and car (like GarageOpener) and test for that, instead of your player pawn class