Get into and out of vehicles?

Hey,

I am having a problem with trying to get hopping into and out of vehicles working. I cant seem to find a correct way of scripting or going about trying to get it to work.

Basically what I have is a 3rd Person Controller… which is all good… trying to get into vehicle…not so good? ? Every time I try to write a script for it returns with a syntax error… :frowning:

Thankyou for your help…

Kieren

This is hopelessly vague. What exactly have you tried, if anything?

What you want is a controller for your character, and a controller for your vehicle. Get this working first, even in separate projects if you must. There are official tutorials that include vehicles, like the car and networking guides, and several third-party tutorials for things like tanks and flying vehicles.

Once you have both of these controllers working individually, add a function that can be triggered with a key press that disables the player controller and camera and enables the vehicle controller and camera instead, so you can toggle between the two and control each on demand.

You now have the basics of what you want, and can modify this to fit into your game.