Search Unity

Player car script and encountered this issue: BCE0005: Unknown identifier:

Discussion in 'Scripting' started by MrJohnWeez, Nov 27, 2013.

  1. MrJohnWeez

    MrJohnWeez

    Joined:
    Aug 31, 2013
    Posts:
    8
    I made this simple player car script and encountered this issue:
    I tried to put function in front of carPhysicsUpdate but nothing worked.
    I have been stuck on this for a long time. Please help :)

    Assets/Car.js(78,9): BCE0005: Unknown identifier: 'carPhysicsUpdate'.
    Assets/Car.js(81,9): BCE0005: Unknown identifier: 'checkInput'.
    Assets/Car.js(103,25): BCE0005: Unknown identifier: 'wheelsTransform'.
    Assets/Car.js(104,25): BCE0005: Unknown identifier: 'wheelsTransform'.
    Assets/Car.js(105,25): BCE0005: Unknown identifier: 'wheelsTransform'.
    Assets/Car.js(106,25): BCE0005: Unknown identifier: 'wheelsTransform'.
    Assets/Car.js(134,25): BCE0005: Unknown identifier: 'Imput'.
    Assets/Car.js(225,9): BCE0005: Unknown identifier: 'carRididbody'.
    Assets/Car.js(256,17): BCE0005: Unknown identifier: 'carRididbody'.
    Assets/Car.js(256,40): BCE0005: Unknown identifier: 'engineForce'.
    Assets/Car.js(262,9): BCE0005: Unknown identifier: 'carRididbody'.
    Assets/Car.js(269,9): BCE0005: Unknown identifier: 'carRididbody'.



    If you need any other information I would be happy to send it to you.
     

    Attached Files:

    • $Car.js
      File size:
      5.5 KB
      Views:
      653
  2. angrypenguin

    angrypenguin

    Joined:
    Dec 29, 2011
    Posts:
    13,850
    Read the errors and see what they're telling you. They are telling you exactly what is wrong.

    Take that first one. It's telling you that it doesn't know what the identifier "carPhysicsUpdate" is. And in your other thread someone else already told you how to fix that. ;)

    Whenever you create an identifier (a name for anything in your code) you need to use it exactly as it's typed whenever you refer back to it.
     
unityunity