Hey, have you had a look through the Blueprint tutorials? There’s a whole series on creating a level, including adding sliding doors:
Hey, have you had a look through the Blueprint tutorials? There’s a whole series on creating a level, including adding sliding doors:
I already have the model, but how do I make it open like a normal door?
i know how to make a sliding door i want to make a normal opening door that only opens when your close to it and when you press E on Keyboard
So what’s the problem? Once user pressed E check if you’re near the door, if so - play open animation.
The reason why doors in games are typically handled via sliding side-to-side or up-and-down is because opening a door along a hinge like a “normal door” can potentially be much more complicated. If your player is opening a door that opens towards himself, for example, you may need to move the player’s character pawn out of the path of the door. If he is opening a door outward, it’s possible that enemies may have collected on the other side of the door, blocking its path.
In some games this is handled by entering a mini-cutscene where as soon as the “open door” key is pressed, the player loses control of his character momentarily and the pawn positions itself and animates the opening of the door before walking through. Other games take a more simplistic approach and simply push characters that collide with an opening door. You will have to make your own choice on how to proceed as any approach will have benefits and drawbacks.
If you’ve downloaded the Content Examples pack from the Marketplace, one of the place-able assets in that project is named BP_Door. If you open that blueprint, you’ll see how it is setup to open the door via overlapping a volume on either side of the door.