wow this came out faster than i thought! awesome thank you!
@mapelsiroup56045 жыл бұрын
would it be possible to make so if the door collides with something it stops mid way?
@thesensur62145 жыл бұрын
You could probably use actor begin overlap to do something like this
@mapelsiroup56045 жыл бұрын
@@thesensur6214 oh yeah right but how would i got about stopping the timeline well idk so ill go check ;) thx bud
@Nozera2 жыл бұрын
Hey! i can't find "vector - vector". I think because of ue5. What should i do?
@alexamos2 жыл бұрын
Use "Subtract"
@Alaa_alshahed3 жыл бұрын
why when i pass through the door directly the door reverse to the other side not staying as it is? :(
@GBTC20113 жыл бұрын
Door opens sometime away and sometime towards character for no reason.
@DirectionGaming3 жыл бұрын
How to implement this using Box collision insted of linetrace
@ChrisVlogX4 жыл бұрын
I want to use a different Input such as E but it's not working. How can I change it
@CobbDev4 жыл бұрын
At 7:48 I search for "input left mouse button". Instead, search for "input e". You might have to scroll a bit to find it.
@ChrisVlogX4 жыл бұрын
Cool Thanks It Worked 👍, Love your videos bro, keep it up.
@GrandmasterPanch3 жыл бұрын
Hi! I keep having an issue with the "dot product". It throws me an error "accessed none trying to read property". I believe the Player Ref has no value. Any idea how to solve that?
@CobbDev3 жыл бұрын
It means your player reference variable isn't set to anything. Check 2:31 to make sure you did the BeginPlay right
@GrandmasterPanch3 жыл бұрын
@@CobbDev I remade that part following your video and still get the same message :( I'm using a ThirdPerson Character. Do you think I have to do anything different (any variable, character camera, etc) for the ThirdPerson to work with your example?
@АлижанОрынтаев3 жыл бұрын
hey, great tutorial, it was very helpful. but, i've got some issues with door's opening, it's not opening all the time, i mean it opens well, but for closing i have to click several times, is there any place where i have to navigate or something???
@Vendaar2 жыл бұрын
I noticed this too. You have to change to default value of your "IsDoorClosed" boolean to negative.
@kelvinhuurman42475 жыл бұрын
Could u make a video how to add weapons to a third person character?
@torstaken2 жыл бұрын
Is there a way I can add physics to it? For example if I get in the way it stops but when I move out of the way, it continues until it opens/closes?
@Mdogg20052 жыл бұрын
So say we wanted to use the same action mapping to allow us to open door, pick up item, push a button, etc. How do we go about doing that? With this system all line trace is converted to BP actor and calls the OpenDoor function.
@KamikazeXeX2 жыл бұрын
The way to do this would be implement a blueprint interface on your "interactible" actors with a generic "interact" function and and call that function if the interface is implemented on the actor from the line trace instead of casting to a specific actor and calling *some* specific function.
@Hyper3 жыл бұрын
How would you alter this to open on a box collision rather than pressing a button? so the door is automatic
@CobbDev3 жыл бұрын
Add a box collision to the door, make it as big as you want for the automatic detection, create the OnOverlap event for the box, from there do the dot product calculation. You can cut out the line trace entirely.
@Lusiogenic5 жыл бұрын
Awesome stuff, thanks!
@incenseman66502 жыл бұрын
This is a great tut. I realize this is a very old post and that I may not get an answer. I need to ask this question. If I want the door to open by having the player walk into a trigger box on each side of the door instead of using the left mouse key, How would I do that? I tried simply adding a trigger box but that did not work. Is there a way to make that work?
@CobbDev2 жыл бұрын
Use a trigger box, and upon entering the trigger box run the line trace from the character to the door, have it go through all the rest of the code (using the dot product to figure out the rotation and then rotating it)
@salilupadhyayaryan2 жыл бұрын
This is a good Tutorial. But I am facing a problem when I try to use the event tick to check whether the distance is getting calculated or not. (03:44) my distance is not updating and I am getting an error. the door is only opening on one side. (Blueprint Runtime Error: "Accessed None trying to read property PlayerRef") Please help me if you can.
@ex_S1N Жыл бұрын
Yea, I'm getting the same error. You ever figure it out?
@ex_S1N Жыл бұрын
Figured it out. Make sure that wherever your "Cast to character" logic is, the beginning of that code should start with "Event BeginPlay," and not something else.
@MustafaDagdelen3 жыл бұрын
thank you but movable mesh not light building (gpu lightmass) how do fix
@CyberpunkV20775 жыл бұрын
Great tutorial, many thanks
@dylomusic94784 жыл бұрын
Hey man thank you so much for this vid. Thorough explanation and super fast. I had a question though. Is there a way I can adjust where I have to click when opening the door? I'm in the third person template and currently, I have to face the camera to the side of the door respective to the pivot point, rather than square in front of me. Thank you in advance, I hope to hear back soon.
@kevinlong51043 жыл бұрын
@@pgWave. not working for me...
@artmaknev37384 жыл бұрын
Can you add sound to closing and opening?
@789alizaidi4 жыл бұрын
this did the trick amazing tutorial thanks cobb day you're amazing
@robertbrough22963 жыл бұрын
For anyone having problems with the door rotating too fast check your timeline is set from 0 to 1 rather than 0 to 90. For anyone having issues with the door not opening away from them, use "get right vector" instead of "get forward vector" for the camera.
@rycrft3 жыл бұрын
How do I set the timeline from 0 to 1?
@kevinlong51043 жыл бұрын
Nope doesn't work, after added "Get right vector" the door won't even open
@Upaleo922 жыл бұрын
Thanks Man!!!!!
@Zeuzdelaluz4 жыл бұрын
Great video thanks! For anyone having issues with the door not opening the right way. Check and make sure that your Scene root is the parent of your "Door frame" and that your door frame is the parent of your door. And one last thing you can do if it's opening towards you instead of away from you is inverting the values on your select float node. So instead of the 90 being on top, make it go on the bottom and make the -90 go on top. I hope this helps !
@kevinlong51043 жыл бұрын
nope it still opens toward the player...
@Andrei17442 жыл бұрын
Mate you just solved my problem
@Zeuzdelaluz2 жыл бұрын
@@Andrei1744 Glad I could help! God bless you brother =)
@AnikenSkiwalker3 жыл бұрын
Why are you using the dot product?
@CobbDev3 жыл бұрын
It's the fastest way to find which side of the door we're on, since it gives us a value from 1 to -1
@ramdion4 жыл бұрын
We can't shoot through the door,right?can you make that possible...tks.😊👍
@sweatmandella17254 жыл бұрын
so i found this really easy to follow. but right now im using HorrorEngine. which has it's own doors sound effects etc.. when i try applying this to that engine it doesnt really work. maybe im casting to the wrong character? do you have any videos about horror engine?
@CobbDev4 жыл бұрын
Sweat mandella I've never used horror engine, but maybe try just using the door mesh and making your own actor rather than altering the door actor it comes with. If that is what you're doing and it still doesn't work, the issue is probably the mesh, so make sure it has proper collision.
@sweatmandella17254 жыл бұрын
@@CobbDev no i made it from scratch following your every move, i'm thinking its the casting to character. but i will stick to the default for now. great video though man. appreciate the reply.
@vkp25064 жыл бұрын
Hey man would be great if u reply what do i do? I done everything u shown me here but when i satrt the game the door spins really fast and then stops in a fixed position. What do i do?
@daifee91744 жыл бұрын
same issue
@robertbrough22963 жыл бұрын
Chances are your timeline isnt right. Its moving from 0 to 1.
@vkp25063 жыл бұрын
@@robertbrough2296 I kinda fixed my problem 3 months ago...
@robertbrough22963 жыл бұрын
@@vkp2506 Posting how you fixed it would help others in the same position mate.
@timsonss Жыл бұрын
@@robertbrough2296 yes
@AhriCRose4 жыл бұрын
Oh man, this is awesome, thank you :D
@mehmetbaspinar254 жыл бұрын
my door open one direction how fix it ?
@leviathan7894 жыл бұрын
Hey I was wondering if there is a way to keep everything just add a few things to make it automatic so when you step within the trigger box instead of clicking it just opens. I've tried to use it but add in my own thinking havent gotten it to work yet but I'm sure there is a way. I already got it to work with my double door.
@CobbDev4 жыл бұрын
Hazey Legend I would have 1 trigger box big enough to cover both sides of the door. Once you overlap the box, use a line trace and the dot product technique to choose which way the door opens. Once you leave the trigger box, close the door. I might actually make a video on this
@leviathan7894 жыл бұрын
@@CobbDev a video would be very helpful plus there is definitely no video showing how to make a automatic door that opens outwards on both sides. I've checked a lot. I understand what you are saying and will try it out
@leviathan7894 жыл бұрын
@@CobbDev I am actually making it for the ark dev kit which obviously still runs the same version of unreal and is for the most part exactly the same besides I choose cast to shooter character instead of any of the others so I'm more looking into a way to make it all within the bp class itself and not into the character at all because the clicking method wouldnt be very good for ark. I've been making a huge mod for about 4 months now and the video plus a couple other of your videos have helped a lot that's why I was hoping to kinda have your advice for this and get it worked out.
@mehmetcansarmen70363 жыл бұрын
Can you help me about how did you get it to work with your double door? i have double door too but i couldn't do that
@HawkinsBrosGaming4 жыл бұрын
At 4:00 when I test this 0 seems to be at a completely different location than where the door is at. I've got everything working apart from this part, the door opens well, just not away from me and only in one direction. I've got over the video multiple times but I can't see where I have gone wrong. Seems the world location of my door is wrong?
@CobbDev4 жыл бұрын
Maybe your door isn't at the center of your actor? "0" will be at the exact center of the actor, not the meshes
@HawkinsBrosGaming4 жыл бұрын
Cobb Dev Thanks for the reply, the mesh is in the centre of the BP actor. I’m using the 3rd person character and have replaced everything correctly. I don’t have a 3rdPersonCharacter placed in the map, im using a GameStart to spawn instead, could that cause an issue?
@CobbDev4 жыл бұрын
@@HawkinsBrosGaming Ah, I think the issue is that since you're using the third person character and the camera is the start of the line trace, that's what's being tracked as which side the of the door you're on, not your mesh. Does just rotating your camera around change the dot product value?
@HawkinsBrosGaming4 жыл бұрын
Cobb Dev I’m not too sure, I am currently at work and I can’t check yet. Once I get home I’ll update you if that’s alright. Again, thanks for actually helping.
@HawkinsBrosGaming4 жыл бұрын
@@CobbDev Just tested it, rotating the camera doesn't change the dot product value.
@dineshraj784 жыл бұрын
ohh great one, damn quick!!
@WowPlusWow3 жыл бұрын
There is a huge problem with your logic. If you open the door, then close it and while its closing move to the other side and open it, the door will snap back to the 0.0 rotation. This implementation is flawed.
@WallesWillerWalla3 жыл бұрын
You must have missed a step in the implementation. For testing I set the timeline to 10 seconds, and tried to replicate what you wrote, but was not able to. If I do as you say, open the door, then close it and move around it to try to open it while it's moving, it's not snapping at all, it just continues to close. And it shouldn't start to open towards you, as it's supposed to always open away from you. Edit: You probably forgot to actually set the dot product variable. If you don't set it, but just use it as it's being calculated, it'll recalculate all the time while the door is opening or closing.
@svenrawandreloaded4 жыл бұрын
is there a way to have the door auto close after a delay?
@faymantaray3 жыл бұрын
Add a box collision in the viewport and send the 'on component end overlap' node to the reverse of the timeline via a delay node.
@timsonss Жыл бұрын
there is literally a delay node
@chrisdoodle94264 жыл бұрын
I dont know how to get it to Cast to BP_Door i dont have that ?
@CobbDev4 жыл бұрын
Are you sure that you're searching for the correct name? If you named it something other than BP_Door you'll have to search for that. Also, make sure you're taking it from Hit Actor and your BP_Door is compiled.
@chrisdoodle94264 жыл бұрын
@@CobbDev What is Bp_Door anyways that would prob help me?
@CobbDev4 жыл бұрын
Chris doodle BP_Door is the actor we create in the beginning, it's the blueprint we create that has the door mesh and all the code we make for the door. (When we right click, create blueprint, and choose actor)
@chrisdoodle94264 жыл бұрын
@@CobbDev I figured it out thank you so much.
@ricardobruh5 жыл бұрын
GREAT Tutorial. Very simple and clean. Thank you !
@grazispoint4 жыл бұрын
Would be appreciated having sections for this or slower video since KZbin doesn't allow for frame-by-frame rewind/fast forward. Also, having a text version of instructions in Description would be extremely helpful since video has no instructional delays points. Thank you for helping, but seemed too complicated because I had to keep backtracking after blinking.
@jvcnb_off4 жыл бұрын
yeah would be nice if i could actually follow along, but i guess this is only for people who know how to do this already for some reason
@dreamsprayanimation8 ай бұрын
Thatsh good informashion.
@HiBye-fy7qs5 жыл бұрын
Timelines Curves Would Be Easy Than This For Opening A Door
@VitorCaldeira19803 жыл бұрын
break hit result is missing in ue5
@gjduppessis6502 жыл бұрын
thx man this helped me alot and it works I would give you 3x the likes if I could
@CitroenGames5 жыл бұрын
pls continue with the cod zombie's series pls
@playerwon56602 жыл бұрын
am i the only one who tries to move his blueprint around while watching?
@monteme46913 жыл бұрын
Can somebody point me to a beginner tutorial because he moves through this so fast if you don’t know what you’re doing already you don’t have a chance.
@super117knight5 жыл бұрын
All this for a simple door? Oh my god
@dobei39614 жыл бұрын
You were going mach 1
@chickeninabox4 жыл бұрын
Do you want to see, what I made before this video?