Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //****** Donations are greatly appreciated. ******
- //****** You can donate directly to Jesse through paypal at https://www.paypal.me/JEtzler ******
- function Awake() {
- if (!networkView.isMine){ GetComponentInChildren(Camera).enabled = false;
- // disable the camera of the non-owned Player;
- GetComponentInChildren(AudioListener).enabled = false;
- // Disables AudioListener of non-owned Player - prevents multiple AudioListeners from being present in scene.
- GetComponentInChildren(MouseLook).enabled = false; GetComponentInChildren(FPSInputController).enabled = false;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement