- Home /
Attach player to object and disable player movement
Hi! I have tried to make a script that attaches a player to a vehicle / object and disables the player's movement, e.g. by disabling the Character Controller Component. The player doesn't have a Rigidbody component so I haven't really found a good way to do this.
Does anyone have any ideas on how this could be done?
Answer by Deuce2008 · Jun 03 at 12:10 AM
If I understand correctly, you have disabled the character controller component, that should work. And as for the rest you can just parent the player to the vehicle. The doc for Transform.SetParent.
Yes of course and thank you for your help. I got it working now!
Your answer
Follow this Question
Related Questions
Activate camera script with a trigger 1 Answer
Is there another way of counting Scores (points) instead of Colliding (destroying) ?? 1 Answer
Help me with this code proplem,,Almost finish my game please help this once 3 Answers
How do I make my projectile deal damage to a target it hit. 1 Answer
Why does my player not move? 1 Answer