SORRY! My English is very bad!
Hi! I need your help with creating a enter/leave car (Third Person). How to create a script interaction with car like GTA?
SORRY! My English is very bad!
Hi! I need your help with creating a enter/leave car (Third Person). How to create a script interaction with car like GTA?
Near the doors you need to make triggers, it can be other blueprint inherited from volume class, you need to create a pointer to the car as new variable. Then add these triggers to the car as components and assign pointers in triggers. Now when player pushes F or E or even Enter you need to try cast every overlapping components to your trigger blueprint until you find first. If nothing castable - you can’t enter any vehicle, if success - now you can use vehicle that pointed by trigger.
Or you can find cars by distance to their doors, but it will take more time.
There’s a simple tutorial you can start with in here
https://docs.unrealengine.com/latest/INT/Gameplay/HowTo/PossessPawns/Blueprints/index.html
Thanks, but I do not understand this. But Your advice to me is very important!
WOW!!! THANKS!! That’s what I needed!! Many thanks!!!