• Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
Question by bob 7 · May 12, 2011 at 06:38 PM · playercar

Java script for unity 3d game player going into car?

i wanted to know if there is someone who can make a script w$$anonymous$$ch lets the player go into cars so it can drive it. i need a javascript

or maybe a script w$$anonymous$$ch lets the player $$anonymous$$t the car and change the player to the car (only if the player comes i contact with the car)

Comment

People who like this

0 Show 0
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

1 Reply

· Add your reply
  • Sort: 
avatar image

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

Comment
Jessy

People who like this

1 Show 5 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image bob 7 · May 12, 2011 at 07:31 PM 0
Share

so whats the control script called. so i have to apply it to the car and player.

avatar image GesterX · May 13, 2011 at 11:06 AM 0
Share

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

avatar image bob 7 · May 13, 2011 at 07:39 PM 0
Share

how can i enable/disable a trigger to each script so the control switches from the player to the car?

avatar image bob 7 · May 13, 2011 at 07:45 PM 0
Share

is there a script that makes the player collide with the car and switch to the car. or anyway to do that.

avatar image GesterX · May 13, 2011 at 08:37 PM 0
Share

Use a collider... this is basic stuff. You should check out http://www.unity3dstudent.com/ for basic lessons

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Welcome to Unity Answers

If you’re new to Unity Answers, please check our User Guide to help you navigate through our website and refer to our FAQ for more information.

Before posting, make sure to check out our Knowledge Base for commonly asked Unity questions.

Check our Moderator Guidelines if you’re a new moderator and want to work together in an effort to improve Unity Answers and support our users.

Follow this Question

Answers Answers and Comments

No one has followed this question yet.

Related Questions

MP - Enter & Exit Any Vehicle 2 Answers

WheelColliders Bug Fix 0 Answers

How to print textures on objects in runtime? 2 Answers

Vehicle exit rotation bug / random vehicle explosions bug. 0 Answers

player to kill ai 0 Answers


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges