x

Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

How to get into and out of vehicle?

I've tried the racing tutorials and they were nicely done. One main problem is there's no option to get into vehicles or out of vehicles that I am seeing. You seem to spawn in them only.

In my game I want vehicles to be used while playing, but players can also get out and walk around as well to go inside locations or just to walk around.

Anyone know of a good tutorial or a good route to go about this?

Example Press 'F' to enter vehicle then 'F' again when you want to leave.

Thank you for reading.

Product Version: Not Selected
Tags:
more ▼

asked Jun 08 '14 at 06:43 AM in Using UE4

avatar image

wicvk
16 1 3 7

avatar image shoemaker Jun 19 '14 at 05:39 PM

Bump. Would also like answers...

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

3 answers: sort voted first

Hi wicvk,

A good place to start with vehicles is on our documentation pages: https://docs.unrealengine.com/latest/INT/Engine/Physics/Vehicles/VehicleUserGuide/

To get into and out of vehicles, while I'm not certain of the exact systems, will require heavy blueprints. I would think that a vehicle pawn and a character pawn blueprint for the individual movements and utilizing the bone structure of the car to allow the player pawn to attach to the driver seat would be viable. After that it is primarily animating the player character to get into the vehicle and switching control from the player pawn to the vehicle pawn.

more ▼

answered Jun 21 '14 at 03:54 PM

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

Why don't you try this? It's really short https://www.youtube.com/watch?v=gZN4cLfiV6k

more ▼

answered Sep 13 '15 at 01:55 PM

avatar image

iam2busy
6 1 3

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

I know this is a little old, but i wanted to add to this. There is also a tutorial specific to entering and exiting vehicles here: https://docs.unrealengine.com/latest/INT/Gameplay/HowTo/PossessPawns/Blueprints/index.html

more ▼

answered Oct 28 '14 at 11:02 PM

avatar image

Mungyun
36 1 3

avatar image Kappa Dec 11 '14 at 11:49 PM

I followed the blueprint and it works great for single player. When the player leaves the car on the server, the pitch and roll get reset. However, when the player leaves the car on the client, the pitch and roll are not getting reset. This doesnt really make sense to me because the character is properly being spawned at the Spawn Location arrow on both the server and client.

avatar image Adam Davis STAFF Dec 12 '14 at 08:55 PM

Have you made sure to run a switch has authority check and ensure that the players movement is replicated properly?

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question