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

แชร์
ฝัง
  • เผยแพร่เมื่อ 14 ม.ค. 2025

ความคิดเห็น • 103

  • @clebo99
    @clebo99 3 ปีที่แล้ว +5

    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  3 ปีที่แล้ว +1

      Always a pleasure, and that sounds amazing! Best of luck to you! :)

  • @Baleur
    @Baleur 2 ปีที่แล้ว +1

    Adding the "Interactor" to the interface event is a lifesaver for so many issues i had.

  • @joonasmuhonen1423
    @joonasmuhonen1423 2 ปีที่แล้ว +1

    Thank you sir, good tutorial. I got this working for my custom made kinematic motorcycle, yay!

  • @jiwik731
    @jiwik731 ปีที่แล้ว +5

    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 7 หลายเดือนก่อน

      have you tested it?

    • @jiwik731
      @jiwik731 7 หลายเดือนก่อน +1

      ​@@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 7 หลายเดือนก่อน

      @@jiwik731 thanks fore the reply - appreciate it

  • @TheSkeleton27
    @TheSkeleton27 2 ปีที่แล้ว +3

    Something is wrong with this…
    IT WORKS! Thank you!

  • @davidedemurodominijanni9889
    @davidedemurodominijanni9889 3 ปีที่แล้ว +6

    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 3 ปีที่แล้ว

      yea me too

    • @MattAspland
      @MattAspland  3 ปีที่แล้ว +4

      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 3 ปีที่แล้ว +1

      @@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!

  • @megtwin
    @megtwin ปีที่แล้ว

    Thanks Matt, easy peasy!

  • @wolfiedgr8t
    @wolfiedgr8t 3 ปีที่แล้ว

    Excellent stuff Matt, thanks 👍

  • @ThrillDaWill
    @ThrillDaWill 3 ปีที่แล้ว +1

    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  3 ปีที่แล้ว +2

      I could add that to my list yep, interesting one thanks!

    • @orkblutt
      @orkblutt 2 ปีที่แล้ว

      @@MattAspland Yes please :)

  • @whatisupdawg
    @whatisupdawg 2 ปีที่แล้ว +2

    Can you update this for Unreal 5 because the sedan is no longer included?

    • @lovinghand7325
      @lovinghand7325 2 ปีที่แล้ว

      Ooooh I thought I was trippin

  • @sociallyinept7898
    @sociallyinept7898 3 ปีที่แล้ว +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?

  • @RNMC69
    @RNMC69 2 ปีที่แล้ว +2

    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

  • @the.adrianm
    @the.adrianm 3 ปีที่แล้ว +1

    I have tried so hard to be first on your videos :)

  • @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!!

  • @RobKazPlay
    @RobKazPlay 2 ปีที่แล้ว

    All I want to say is, "Thank you so much. Very easy to follow and learn :)"

  • @killstreakz
    @killstreakz 2 ปีที่แล้ว +1

    when i enter the car, i turn invisible and i dont posses the car

  • @nickjohnson7277
    @nickjohnson7277 3 ปีที่แล้ว

    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  3 ปีที่แล้ว +1

      Awesome to hear Nick!

  • @natishmaac
    @natishmaac 2 ปีที่แล้ว

    not getting that interact tab on the left 8:05 please help

  • @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

  • @smartaled6756
    @smartaled6756 2 ปีที่แล้ว

    thankyou verymuch 💕

  • @proskill8668
    @proskill8668 2 ปีที่แล้ว +1

    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

  • @lolathepinky4857
    @lolathepinky4857 2 ปีที่แล้ว

    Thanks a Lot ! :D ♥

  • @CommanderColson
    @CommanderColson 3 ปีที่แล้ว +1

    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  3 ปีที่แล้ว +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_ 3 ปีที่แล้ว

      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.

  • @StormSongwow
    @StormSongwow 2 ปีที่แล้ว

    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.

  • @730wavy
    @730wavy 2 ปีที่แล้ว +1

    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 2 ปีที่แล้ว

      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.

  • @MurderMittenGame
    @MurderMittenGame 2 ปีที่แล้ว +1

    when i get out of the car i cant move. But when i jump i end up falling through the map. help?

  • @RelytX
    @RelytX 3 ปีที่แล้ว +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  3 ปีที่แล้ว +2

      I could look into that yeah, I've got a few ideas flowing so I can add it to my list!

    • @fjb666
      @fjb666 2 ปีที่แล้ว +1

      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

  • @John-jg4wp
    @John-jg4wp 3 ปีที่แล้ว

    Could you do a video on how to set up our own custom vehicles? Great tutorial!

  • @gamerdweebentertainment1616
    @gamerdweebentertainment1616 2 ปีที่แล้ว

    Did the car has it's own control scheme? built in?

  • @notyobusy
    @notyobusy ปีที่แล้ว

    how can i fix the camera when i come out of the car it needs reset

  • @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!

  • @josephbright5836
    @josephbright5836 2 ปีที่แล้ว

    when I do this, I have a view from inside the vehicle mesh rather than the camera component attached to it. Any ideas?

  • @C1ayz
    @C1ayz 3 ปีที่แล้ว +1

    how create new world in game like minecraft

  • @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 ?

  • @markosmoney4247
    @markosmoney4247 3 ปีที่แล้ว

    How can I use the steering wheel on the UR4?

  • @Inverted_NL
    @Inverted_NL 2 ปีที่แล้ว

    Safed my life love you

  • @fleurbird
    @fleurbird 3 ปีที่แล้ว +2

    I was thinking, you're on the wrong side. But of course that is the normal driver side for you 😁

    • @MattAspland
      @MattAspland  3 ปีที่แล้ว +1

      Yeah I always forget about different hand drives lol

  • @elbozomemelive9891
    @elbozomemelive9891 2 ปีที่แล้ว

    how do i make the UI changes bro

  • @AsGLeagueStudios
    @AsGLeagueStudios 2 ปีที่แล้ว

    How can i make it so that if character dies while possessing the car the posseson stops etc..

  • @hotcereal8698
    @hotcereal8698 3 ปีที่แล้ว

    can you make a tutorial for making a character ragdoll if they fall from a certain height please

  • @_jeffrey_williams
    @_jeffrey_williams 2 ปีที่แล้ว

    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.

  • @JoshBrunhoff
    @JoshBrunhoff 2 ปีที่แล้ว +1

    doesnt work in unreal engine 5? at the exit of vehicle, the player loses control of the pawn.

  • @connormcclelland8784
    @connormcclelland8784 3 ปีที่แล้ว

    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?

  • @cyberjism
    @cyberjism 3 ปีที่แล้ว +1

    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.

  • @siddharthpandey8532
    @siddharthpandey8532 3 ปีที่แล้ว

    Sir please make enter and exit button for android phone in unreal engine 4

  • @MartKart8
    @MartKart8 3 ปีที่แล้ว

    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  3 ปีที่แล้ว

      That could definitely improve it yeah. You can do "start camera fade" from "get player camera manager" to do this.

  • @speedmilesgood
    @speedmilesgood 2 ปีที่แล้ว

    Thank you very much. I will get in no time at Naughty Dog with you !

  • @aikidoca
    @aikidoca 3 ปีที่แล้ว

    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  3 ปีที่แล้ว

      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.

  • @TommyHuynh89
    @TommyHuynh89 2 ปีที่แล้ว

    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?

  • @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.

  • @galtogalaxy
    @galtogalaxy 3 ปีที่แล้ว

    Please tell us with animations sir, like gta

  • @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.

  • @Ramonzintos
    @Ramonzintos 3 ปีที่แล้ว

    could you put english subtitles

  • @ПопулярновБългария
    @ПопулярновБългария 2 ปีที่แล้ว

    the big get into the car problem

  • @chofthch
    @chofthch 2 ปีที่แล้ว

    HOW DID HE MAKE IT SO GAME STARTS BY THE UE 4 MANNEQUİN IM GETTING CRAZY

    • @ECAKJ
      @ECAKJ 2 ปีที่แล้ว

      When you create a project check the starter content check box

  • @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?

  • @djtc2093
    @djtc2093 2 ปีที่แล้ว

    This didnt' work in UE5. Trying it with Firstperson

  • @theelexgrahameshow2023
    @theelexgrahameshow2023 2 ปีที่แล้ว

    So my comments keep getting deleted? smh thanks for the help

  • @loremipsum3147
    @loremipsum3147 3 ปีที่แล้ว

    You don't need to check if implements

    • @loremipsum3147
      @loremipsum3147 3 ปีที่แล้ว

      Ofc if you don't use break for loop :D

  • @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.

  • @stroporez79
    @stroporez79 ปีที่แล้ว

    для пятой версии не подходит

  • @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.

  • @ayeshakashif9790
    @ayeshakashif9790 3 ปีที่แล้ว +1

    Second

  • @herz_aus_stahlisteinkiffff3354
    @herz_aus_stahlisteinkiffff3354 3 ปีที่แล้ว +1

    third

  • @ShadalooPlayer
    @ShadalooPlayer 3 ปีที่แล้ว

    First

  • @RohitDabhade-o1z
    @RohitDabhade-o1z ปีที่แล้ว

    Not working in unreal 5.1, not able to control the car, any solution on the same.

    • @PoketAceJas
      @PoketAceJas 10 หลายเดือนก่อน +1

      Have you resolved this?

    • @DannysHauntedJourney
      @DannysHauntedJourney 9 หลายเดือนก่อน +1

      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.