- Home /
Java script for unity 3d game player going into car?
i wanted to know if there is someone who can make a script which lets the player go into cars so it can drive it. i need a javascript
or maybe a script which lets the player hit the car and change the player to the car (only if the player comes i contact with the car)
Answer by GesterX · May 12, 2011 at 06:44 PM
No one will make a script for you. That's not what Unity Answers is for. How do you expect to make the rest of the game if you want people to write entire scripts for you...
As for your problem set up a control script for your car and also one for your player. Use a trigger to enable/disable each script so the control switches from the player to the car and vice-versa
so whats the control script called. so i have to apply it to the car and player.
You could use the default character controller for the player. You could modify it for the car. Sounds like you should do some more basic stuff and learn more before you tackle this
how can i enable/disable a trigger to each script so the control switches from the player to the car?
is there a script that makes the player collide with the car and switch to the car. or anyway to do that.
Use a collider... this is basic stuff. You should check out http://www.unity3dstudent.com/ for basic lessons
Your answer
Follow this Question
Related Questions
help loading level after destroying objects 1 Answer
how to change object 0 Answers
Dose any one know how to send object current postion to preivues posistion 1 Answer
hands rotating with steering wheel 1 Answer
i am trying to make my character exit the car, its almost done, i just need a help 0 Answers