- Home /
https://answers.unity.com/questions/7555/how-do-i-call-a-function-in-another-gameobjects-sc.html
Accessing RigidbodyFirstPersonController
Hi, in my game, at some Points I want to stop the Player from looking around. I have a function for that implementer into the standard Unity RigidbodyFirstPersonController, but I want to enable that from another gameObject. For some reason I cannot access the script through gameObject.GetComponent<RigidbodyFirstPeronController>()
and gameObject.BroadcastMessage("stopMouseLook");
also does not find a target. How could I access a Variable or Method in the script?
Follow this Question
Related Questions
Mouselook script beserk when GO made child 0 Answers
How can I define a joint for my ragdoll? 0 Answers
How to determine the direction of an object to the player. 1 Answer
Distribute terrain in zones 3 Answers
Multiple Cars not working 1 Answer