Announcement

Collapse
No announcement yet.

GTA Style Vehicle Interaction - Project File Included

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • replied
    Thanks for this great tutorial.

    Leave a comment:


  • replied
    thanks for this Jacky something i've been wanting to try for a long time, was thinking though if you made it so that it worked from "child of vehicle(code file)" might that be better, but then i haven't a clue if it would work

    btw looks like they updated the docs which should help
    https://docs.unrealengine.com/latest...nts/index.html
    about halfway down

    Leave a comment:


  • replied
    Originally posted by jeffmorris View Post
    Is it possible to do this with different vehicles in the game such as a sedan and a van?
    It is possible. It will be a bit complicated if the van is not a child BP of the sedan so i would just create another child of the sedan and then replace its mesh and defaults with the van's. That way it will be a drop & use vehicle with the rest of the vehicles you have.

    Leave a comment:


  • replied
    Is it possible to do this with different vehicles in the game such as a sedan and a van?

    Leave a comment:


  • replied
    Originally posted by Tom Looman View Post
    Hi Jacky!

    System looks cool Had a look at your Blueprints from the video and have some remarks

    You really want to stay away from using the "OR"-node when checking if you're in a Sedan or controlling player.

    While you only have one vehicle type (I assume any vehicle is considered "sedan" right now?) I'd recommend using the following instead:

    This saves you the trouble whenever you add a new class, you don't need to update this portion of the BP!

    Brilliant! Thanks a lot, Tom.

    I've updated the screenshots and the project file.

    Leave a comment:


  • replied
    Awesome Jacky, I have been meaning to add in some functionality to allow a pawn to enter a vehicle for a while now, will give this a try when I have some free time. Thanks for the demo & tutorial!

    Leave a comment:


  • replied
    Hi Jacky!

    System looks cool Had a look at your Blueprints from the video and have some remarks

    You really want to stay away from using the "OR"-node when checking if you're in a Sedan or controlling player.

    While you only have one vehicle type (I assume any vehicle is considered "sedan" right now?) I'd recommend using the following instead:

    Click image for larger version

Name:	class_inheritence_bp.png
Views:	1
Size:	31.5 KB
ID:	1056991

    This saves you the trouble whenever you add a new class, you don't need to update this portion of the BP!

    Leave a comment:


  • replied
    Making and breaking games is fun and hard and I certainly enjoy both. While I do enjoy breaking them they are never perfect on the first release. Great work on the tutorial. It really is a great starting point for anyone looking to do vehicle games with their characters!

    Thank you for taking the time and giving back to the community. It is always appreciated!

    Tim

    Leave a comment:


  • replied
    Thanks for trying it out, Tim!

    Yeah, i didnt even think of those issues you found out because i was more focused on handling the possession of multiple cars in the same level. It has been asked a couple of times before and even though i helped some folks out nobody bothered to turn them into a tutorial(even though i asked so nicely!) so i decided to do it myself. -_- I can add those features later on, and if anyone happens to add them before i do feel free to post here please!

    Leave a comment:


  • replied
    Hi Jacky,

    Great tutorial and setup here!

    I gave it a shot and everything worked pretty well.

    Couple of things to note though.

    I flipped one car upside down by hitting it with another car. By being able to still enter the car and exit the camera now flips sideways. So possibly having a check to not allow entry to cars that are flipped upside down would be good.

    Click image for larger version

Name:	Flipped.PNG
Views:	1
Size:	777.5 KB
ID:	1056986

    Also, another thing is there the vehicle does not slow down and stop after jumping out. It will keep it's same trajectory and movement speed. Notice the orange car. It was continually circling me like shark while I typed this!

    Great start for anyone here though to lead off and have some fun! I would love to see more vehicle games from the community! I remember when I bought my PS1 the first game I bought was Twisted Metal and Driver!

    Tim

    Leave a comment:

Working...
X