Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 Jun 22
sparklines
Close Help
  • 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
0
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 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)

Comment
Add comment
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
1

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
Add comment · 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.

Follow this Question

Answers Answers and Comments

No one has followed this question yet.

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


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