- Home /
Please insert semicolon ; at the end UCE0001 HELP!!!!!!!
#pragma strict
var rotationSpeed = 100;
var jumpHeight = 8;
private var isFalling = false;
function Update ()
{
//Handle ball rotation.
var rotation : float Input.GetAxis ("Horizontal") * rotationSpeed;
rotation *= Time.deltaTime;
rigidbody.AddRelativeTorque (Vector3.back * rotation);
if (Input.GetKeyDown(KeyCode.W) && isFalling == false)
{
rigidbody.velocity.y = jumpHeight;
}
isFalling = true;
}
function OnCollisionStay ()
{
isFalling = false;
}
i dont see where the ; needs to be. Im watching a tutorial by www.youtube.com/Brackeys i did exactly as he said and it still comes up with an error code. Please help with this situation.
Comment
Answer by rutter · May 15, 2014 at 10:23 PM
This line:
var rotation : float Input.GetAxis ("Horizontal") * rotationSpeed;
You're missing an =
sign, so the compiler doesn't know what to do.
It should look something more like this:
var rotation : float = Input.GetAxis ("Horizontal") * rotationSpeed;
Your answer
Follow this Question
Related Questions
3 java errors on a basic shooting script? 2 Answers
scripting colliders errors 1 Answer
C# Error with if statement 1 Answer
Strange Error in JScript when using "delete" 4 Answers
Error UCE0001 ';' Expected. 1 Answer