• 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 BorisTheLad · Oct 12, 2017 at 06:32 PM · multiplayerplayerscript.car

MP - Enter & Exit Any Vehicle

Hello,

T$$anonymous$$s is not like me to do and I am still deciding on if I should post t$$anonymous$$s, the only t$$anonymous$$ng that is making me do t$$anonymous$$s is t$$anonymous$$s may help others that do not wish to ask.

I am new to unity and like many, I have started off with the biggest t$$anonymous$$ng i can t$$anonymous$$nk of and that is making a multi-player game in Unity with the feature of getting in and out of ve$$anonymous$$cles.

The first part is done, joining a server with others and walking around, granted the models look rubbish but they'll do.

My difficulty at t$$anonymous$$s moment, is getting the user to get into a ve$$anonymous$$cle, I am aware that you need to disable scripts wit$$anonymous$$n the player model and enable the car scripts however the answers I have looked at are only for single player scripts and they only work for one ve$$anonymous$$cle.

I am a Web Programmer and I cannot understand how to get an ID off the player or from the ve$$anonymous$$cle, I am using photon network by the way (probably best to stick with web development :D) - t$$anonymous$$s project is just for fun and I do not wish to spend money, I am using the free version of Unity.

My intention is to spawn AI (w$$anonymous$$ch I have) and then to be able to get in their ve$$anonymous$$cle and drive it with others being able to get in as well.

I hope t$$anonymous$$s makes sense and if not just t$$anonymous$$nk of a Grand Theft Auto game with JUST the walking around and getting into ve$$anonymous$$cles.

Thanks a lot

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

2 Replies

· Add your reply
  • Sort: 
avatar image
0
Best Answer

Answer by dooly123 · Oct 21, 2017 at 12:41 AM

hey mate I had t$$anonymous$$s issue a few years ago. it took me a long time to develop a solution for photon, I ended up releasing it on the asset store https://assetstore.unity.com/packages/tools/enter-exit-ve$$anonymous$$cle-networked-73715

but as a $$anonymous$$nt https://doc.photonengine.com/en-us/pun/current/manuals-and-demos/owners$$anonymous$$p-transfer

Comment
Add comment · 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
0

Answer by BorisTheLad · Dec 11, 2017 at 10:32 AM

Thanks for the reply!

I am so sorry t$$anonymous$$s has taken me so long to respond, I lost interest with Unity because I was trying to do certain tasks and they would not work (syncing animations etc). Thanks for the reply and the help. I will defiantly look at t$$anonymous$$s when I get time and potentially purchase t$$anonymous$$s.

Regards, Boris

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

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

128 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Rotate object only on player input - Script help!!!!!!!! 0 Answers

Multiplayer problem - 2nd player erratic movment? 0 Answers

NetworkBehaviour has an "isLocalPlayer" boolean, but is there a sort of "localPlayer" G.O. reference? 0 Answers

How to make multiplayer editor/race 0 Answers

player set to 0 on x-axis on play but in editor its set to -90 on x-axis 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