I have an Enter Vehicle Script that when the player walks into the trigger box, it enables the controls of the Jet Plane.
Im calling this line in a JavaScript:
GameObject.Find(“JetPlane”).GetComponent(AeroplaneUserControl).enabled=true;
The Aeroplane User Control is a .CS file and attached to my Jet Plane and is disabled.
My error is:
Assets/VehicleEnterExit.js(44,50): BCE0005: Unknown identifier: ‘AeroplaneUserControl’.
I moved both files out of any folders and put them together under Assets cause I read on another forum that there could be some compiling issues.
This did nothing no matter where they are place?
Any thoughts cause Im all out of ideas?