- Home /
Enter\Exit Car With Doors.
Hi Guys,
I'm new to Unity and don't know much about scripting. I've seen many scripts out there for Enter\Exit car, but actually it disables the character scripts and enables car scripts and I don't want that.I want that type of source which help me make my characters Enter and Exit the car with doors.
Does anyone has the idea about how to do that? If anybody has please tell me about that.
Thanks In Advance!!
the best way i can tell you this, without going into too much detail is,
( my cars, vehicles have character controllers, so i just turn those off when my player interacts with them. )
1 have the car and it's doors do an animation when the player presses a key, or how ever they interact with the car.
2 have the player be placed ( parented ) to something in the car. like an empty gameObject attached to the seat area when they press that key, to enter the car.
3 have the script turn off all scripts and cameras to the player and turn on the car's components. ( the way i do this is i just use the .active = false; method.
( this the method i use )
( though i don't have animated doors, i have used this on 10 things. )
the most recent is mechs.
( but wait for others to post their methods and ideas and go from there, see which ones work the best for you.
and sorry if this is not exactly what you're talking about, or looking for.