Hi, I have a (modified) ThirdPersonController.js script that I want to reference in another script, Cheats.cs, which is coded in C#. When I try to reference the JS script (which is inside my Player) it doesn’t appear like the CharacterController does, I’ve looked round the forums and nothing helped. It acts like the ThirdPersonController doesn’t exist.
I have 2 theories to why this might be happening:
- C# can not access JS scripts.
- You can not reference a script, only a component.
I’m more inclined to believe in the first one. I’m happy to explain this further if you don’t understand some of it.