Тёмный

How To Get In And Out Of A Car | New & Improved - Unreal Engine Tutorial 

Matt Aspland
Подписаться 84 тыс.
Просмотров 24 тыс.
50% 1

Опубликовано:

 

16 окт 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 103   
@Baleur
@Baleur Год назад
Adding the "Interactor" to the interface event is a lifesaver for so many issues i had.
@clebo99
@clebo99 2 года назад
Wow...worked really well. I'm working on adding a setting where you can select the camera (inside or outside). As always, thanks for all your tutorials!!!
@MattAspland
@MattAspland 2 года назад
Always a pleasure, and that sounds amazing! Best of luck to you! :)
@jiwik731
@jiwik731 Год назад
I think with this code if you flip the car and get out you will be also flipped and walking on your head. Just like if you stop on some angle terrain - you will get out and be leaning in that angle. :D Because you get world location but the player model will keep the rotation of the possesed car.
@TheosResearchDiary
@TheosResearchDiary 4 месяца назад
have you tested it?
@jiwik731
@jiwik731 4 месяца назад
​@@TheosResearchDiary This use only actor location. Not rotation. Most of the code is the same but if you make few changes it will work just fine. Maybe the only thing you have to chage is instead of Set Actor Location use Set Actor Transform. It might work fine. If not - use small box collision next to the driver door (not the whole car - once car is flipped you could spawn under the map because this collision is so big) call it what you want - for example "Enter Car Collision". In the exit the car part of the code get this small box instead of skeletal mesh, get socket location out of it and instead of Set Actor Location use Set Actor Transform and the socket location use as a new transform location (yellow dot). The rest is the same. I used the code from "Seredias" channel because it is more advanced but he made the same mistake we fixed.
@TheosResearchDiary
@TheosResearchDiary 4 месяца назад
@@jiwik731 thanks fore the reply - appreciate it
@joonasmuhonen1423
@joonasmuhonen1423 2 года назад
Thank you sir, good tutorial. I got this working for my custom made kinematic motorcycle, yay!
@TheSkeleton27
@TheSkeleton27 2 года назад
Something is wrong with this… IT WORKS! Thank you!
@The.adrianm
@The.adrianm 2 года назад
I have tried so hard to be first on your videos :)
@ThrillDaWill
@ThrillDaWill 2 года назад
Could you make a part 2 where this works with multiplayer? There’s not many tutorials out there and they don’t use your methods of bp interface overlap.
@MattAspland
@MattAspland 2 года назад
I could add that to my list yep, interesting one thanks!
@orkblutt
@orkblutt 2 года назад
@@MattAspland Yes please :)
@brutusdevelopments
@brutusdevelopments Год назад
Like your Tutorials man! would you like to make a swimming tutorial for ue5? There's nothing to find on yt like how you make and explane your tutorials! Keep up the great work!!
@sociallyinept7898
@sociallyinept7898 2 года назад
What if your car flips mid air or on the ground or in between a barrel roll, how do you keep the character upright? And the camera stable? With ragdoll maybe?
@nickjohnson7277
@nickjohnson7277 2 года назад
I had flashbacks to Blender's (BGE) Logic editor watching that. Suddenly I know more about Unreal than I thought I did! Cheers man☮️
@MattAspland
@MattAspland 2 года назад
Awesome to hear Nick!
@davidedemurodominijanni9889
@davidedemurodominijanni9889 2 года назад
I wish it had an animated entry with the character actually entering the car, for realism. That would have been something awesome to learn.
@LucasBrouwers0511
@LucasBrouwers0511 2 года назад
yea me too
@MattAspland
@MattAspland 2 года назад
It seems to be a popular request to this video, so I can look into creating that! Just need to find the animations lol
@davidedemurodominijanni9889
@davidedemurodominijanni9889 2 года назад
@@MattAspland Mixamo has the Race Driver actor and both enter/exit animations. To open/close the car it should enough cutting part of a door open/close animation. I'm sure you'll do it great!
@RNMC69
@RNMC69 Год назад
Hey Brother idk if you are reading my comment , i want a little help its showing me Self Object Reference is not compactable with Pawn Object Reference
@StormSongwow
@StormSongwow Год назад
guide works perfectly just done it on the latest version of unreal. do have a issue though if i am accelerating and leave the car. the car just continues on forever its not stopping acceleration when i exit the car.
@RelytX
@RelytX 2 года назад
This is actually a lot cleaner then what I was doing bp wise. So the big question is if you have ai in the world spawning in after getting in the vehicle is there a way for the ai to recognize that the vehicle is the current player and begin chase or follow the vehicle? If its possible to make a tutorial on that, that specific topic is impossible to find but its what I been struggling with for the past month.
@MattAspland
@MattAspland 2 года назад
I could look into that yeah, I've got a few ideas flowing so I can add it to my list!
@fjb666
@fjb666 Год назад
However you are making the ai target your player already, just set the vehicle as target, zombies listen for target change event, player or level/scene/world manager sends out target change event
@wolfiedgr8t
@wolfiedgr8t 2 года назад
Excellent stuff Matt, thanks 👍
@MattAspland
@MattAspland 2 года назад
My pleasure!
@megtwin
@megtwin Год назад
Thanks Matt, easy peasy!
@RobKazPlay
@RobKazPlay Год назад
All I want to say is, "Thank you so much. Very easy to follow and learn :)"
@CommanderColson
@CommanderColson 2 года назад
Thanks man! How could we stop the car immediately upon exiting though? When getting out of the car at top speed, it keeps driving off for a good while
@MattAspland
@MattAspland 2 года назад
I haven't played around with the car controls too much, however you may be able to just set the speed or acceleration to 0, or lerp it to 0 so it slows down quicker. I can add it to my list!
@knartfocker_
@knartfocker_ 2 года назад
Hold brake until velocity == 0, put car in parking gear, turn ignition to off position, remove key, open door, get out of car, close car door, lock car door, explore.
@whatisupdawg
@whatisupdawg 2 года назад
Can you update this for Unreal 5 because the sedan is no longer included?
@lovinghand7325
@lovinghand7325 Год назад
Ooooh I thought I was trippin
@RoskoTheDark
@RoskoTheDark 2 года назад
What would the proper way of setting up multiple functions from the same input action key I'm using the open/close door function from one of your other tutorials and ,using this get in/out of vehicle function from the same interface, would I just have a sequence node to go through the code until it does what I want? I'm assuming this sequence node will work but wondering about a more optimized way of doing it! Your tutorials are awesome, thank you!
@connormcclelland8784
@connormcclelland8784 2 года назад
What are your computer specs?? I'm having a lot of trouble keeping my computer on. It keeps restarting itself. I have a 10 year old GPU so I'm thinking that's the issue. What PC specs do you have?
@John-jg4wp
@John-jg4wp 2 года назад
Could you do a video on how to set up our own custom vehicles? Great tutorial!
@_jeffrey_williams
@_jeffrey_williams Год назад
Hey Matt, great video. Q: I can hear my character's footsteps after entering the vehicle. Do you know a quick method to disable it? Using foot component in playerBP.
@shinyo69
@shinyo69 2 года назад
if after compiling the first/thirdperson character bp you are getting a warning, then just dont forget to compile the blueprint interface
@gamerdweebentertainment1616
Did the car has it's own control scheme? built in?
@MurderMittenGame
@MurderMittenGame Год назад
when i get out of the car i cant move. But when i jump i end up falling through the map. help?
@killstreakz
@killstreakz Год назад
when i enter the car, i turn invisible and i dont posses the car
@josephbright5836
@josephbright5836 Год назад
when I do this, I have a view from inside the vehicle mesh rather than the camera component attached to it. Any ideas?
@Picaxe45
@Picaxe45 2 года назад
my action key firing only once, the player go in the car, then when it exit the car, when i press E again, it's doesn't work .. any idea ?
@lolathepinky4857
@lolathepinky4857 2 года назад
Thanks a Lot ! :D ♥
@aikidoca
@aikidoca 2 года назад
really interesting but i would ask a little "request if you also could make a version with animations, like in games like gta, where the character open the car and enter on it, i know it can be a lot painfull however i would really love to see a toturial, because i really hard see tutorials with animations, like how to enter in a car sit in a chair how to make a animated interaction with objects or the world or others characters like a npc talking with other, i know it must be a lot of trouble because it means use animations which probably you not gonna find free for all stuffs but some you can find free at last in mixamo then would be interesting see some tutorials about how to make things more "animated" and alive, lol, keep good work.
@MattAspland
@MattAspland 2 года назад
Thanks for the feedback mate, I can try and find some animations to use and see what videos I can do, for example animating this one. Thanks!
@pocsaypocsay61
@pocsaypocsay61 Год назад
@@MattAspland Hello! Do you know how it works with the newer vehicle template the one with comes with 5.1? Coz i cant figure it out i can enter/exit the car but it wont drive. Any help would be nice.
@neXib
@neXib Год назад
@@pocsaypocsay61 You can just drag the city sample vehicles blueprints into your project, probably easier.
@smartaled6756
@smartaled6756 2 года назад
thankyou verymuch 💕
@speedmilesgood
@speedmilesgood 2 года назад
Thank you very much. I will get in no time at Naughty Dog with you !
@TommyHuynh89
@TommyHuynh89 Год назад
Hey guys I am trying to implement this code for a space ship but when the character leaves the ship after flying, they are spawned at a random location. Any ideas why this is happening?
@asgardgodsgaming
@asgardgodsgaming 2 года назад
How can i make it so that if character dies while possessing the car the posseson stops etc..
@notyobusy
@notyobusy Год назад
how can i fix the camera when i come out of the car it needs reset
@730wavy
@730wavy Год назад
I've tried following alone using 5.1 but the same assets are not available. I am able to enter/exit but can not control the vehicle when I''m in it.
@ECAKJ
@ECAKJ Год назад
Me too
@pocsaypocsay61
@pocsaypocsay61 Год назад
Same here. Have you got the solution?
@730wavy
@730wavy Год назад
@@pocsaypocsay61 nah I ended up givin up on it
@wolfgangschwarz9415
@wolfgangschwarz9415 Год назад
I have the same problem in 5.1, vehicle doesn't move when I'm in it.
@lonelydoraiba
@lonelydoraiba Год назад
The problem was in the new way they came up with handling inputs, the default "Input Mapping Context" for the Third Person Template does not have any of the "Input Actions" from the "Vehicle" template referenced nor any of the necessary keys bound to them. This a pretty simple fix, I found it through a comment on a Gorka Games video, but it is not very easy to understand as someone starting out in the engine, unfortunately. Hope it helped, cheers.
@Inverted_NL
@Inverted_NL 2 года назад
Safed my life love you
@markosmoney4247
@markosmoney4247 2 года назад
How can I use the steering wheel on the UR4?
@hotcereal8698
@hotcereal8698 2 года назад
can you make a tutorial for making a character ragdoll if they fall from a certain height please
@elbozomemelive9891
@elbozomemelive9891 Год назад
how do i make the UI changes bro
@Wade978
@Wade978 2 года назад
Is there a way to set it up so that a player character UI continues to function even when switching to the car(mine turns off/turns black when I get in vehicle) or have specific part of widget appear when in vehicle?
@v8matey
@v8matey 2 года назад
In your vehicle BP, on begin play, add a create widget. choose the widget UI your character is using. then drag off and add to viewport.
@fleurbird
@fleurbird 2 года назад
I was thinking, you're on the wrong side. But of course that is the normal driver side for you 😁
@MattAspland
@MattAspland 2 года назад
Yeah I always forget about different hand drives lol
@MartKart8
@MartKart8 2 года назад
Would a fade out effect look good for the car, so when you enter it, you don't see the character just vanish and one for when leaving the car, a fade out
@MattAspland
@MattAspland 2 года назад
That could definitely improve it yeah. You can do "start camera fade" from "get player camera manager" to do this.
@JoshBrunhoff
@JoshBrunhoff 2 года назад
doesnt work in unreal engine 5? at the exit of vehicle, the player loses control of the pawn.
@C1ayz
@C1ayz 2 года назад
how create new world in game like minecraft
@cyberjism
@cyberjism 2 года назад
With some minor tweaking this works very well with Post Apocalypse City combined with the newest update to the Third Person Shooter Kit. Thanks Matt.
@natishmaac
@natishmaac 2 года назад
not getting that interact tab on the left 8:05 please help
@siddharthpandey8532
@siddharthpandey8532 2 года назад
Sir please make enter and exit button for android phone in unreal engine 4
@NewElementTech
@NewElementTech 2 года назад
My vehicle is floating, any idea? Thanks.
@NewElementTech
@NewElementTech 2 года назад
Was not using the Chaos System to create the vehicle, used it, fixed the issue.
@galtogalaxy
@galtogalaxy 2 года назад
Please tell us with animations sir, like gta
@Raven319s
@Raven319s 2 года назад
I followed this and everything works great until I move my vehicle, then the exit location seems to become a random location, usually quite far 'while in' vehicle location. Anyone else having this issue?
@emilelec
@emilelec 2 года назад
yes I am having this proplem as well. Have you managed to fix it?
@ayeshakashif9790
@ayeshakashif9790 2 года назад
Second
@chofthch
@chofthch Год назад
HOW DID HE MAKE IT SO GAME STARTS BY THE UE 4 MANNEQUİN IM GETTING CRAZY
@ECAKJ
@ECAKJ Год назад
When you create a project check the starter content check box
@Ramonzintos
@Ramonzintos 2 года назад
could you put english subtitles
@theelexgrahameshow2023
@theelexgrahameshow2023 2 года назад
So my comments keep getting deleted? smh thanks for the help
@djtc2093
@djtc2093 2 года назад
This didnt' work in UE5. Trying it with Firstperson
@herz_aus_stahlisteinkiffff3354
@herz_aus_stahlisteinkiffff3354 2 года назад
third
@loremipsum3147
@loremipsum3147 2 года назад
You don't need to check if implements
@loremipsum3147
@loremipsum3147 2 года назад
Ofc if you don't use break for loop :D
@ShadalooPlayer
@ShadalooPlayer 2 года назад
First
@ПопулярновБългария
the big get into the car problem
@NewElementTech
@NewElementTech 2 года назад
Everything works until I exit the vehicle, the character falls through the ground, even if I position the temp skeleton high above it, it's as if the character collision is removed and falls through anything, any idea? Thank you.
@NewElementTech
@NewElementTech 2 года назад
Tick the New Actor Enable Collision, as he explains at 12:26 in the video.
@stroporez79
@stroporez79 9 месяцев назад
для пятой версии не подходит
@nvrtdfpv2092
@nvrtdfpv2092 2 года назад
Everything works until i exit the vehicle, it places the character below the floor and the character falls into oblivion.
@NewElementTech
@NewElementTech 2 года назад
Same here, any fix?
@NewElementTech
@NewElementTech 2 года назад
Tick the New Actor Enable Collision, as he explains at 12:26 in the video.
@proskill8668
@proskill8668 Год назад
7:24 I have an animation of opening the door, sits on the seat. The question is how to insert the animation of opening the door and the additive in the car
@RohitDabhade-o1z
@RohitDabhade-o1z Год назад
Not working in unreal 5.1, not able to control the car, any solution on the same.
@PoketAceJas
@PoketAceJas 7 месяцев назад
Have you resolved this?
@DannysHauntedJourney
@DannysHauntedJourney 6 месяцев назад
Solution: If you're using enhanced input actions, you need to make sure you're enabling the controls for the car. You can't have two enabled at once in your PlayerCharacterBP, so you have to enable the Car's enhanced controls elsewhere. If you've set up the controls for your player character, it shouldn't be too hard to figure this out.
Далее
Sprinting And Stamina - Unreal Engine 5 Tutorial
17:00
When Khabib dropped Conor McGregor 👀 #nocommentary
00:59
Why People quit Unreal Engine
7:06
Просмотров 245 тыс.
3 Hours vs. 3 Years of Blender
17:44
Просмотров 5 млн
I Made a Game With Only FREE Assets In Unreal Engine 5
11:45
How to Enter & Exit a UE 5 Vehicle In 5 Min
9:46
Просмотров 2,7 тыс.
Unreal Engine 5.4 Motion Matching in 13 Minutes | 2024
13:41
Why Do Video Game Studios Avoid Blender?
6:49
Просмотров 644 тыс.
When Khabib dropped Conor McGregor 👀 #nocommentary
00:59