- Home /
Question by
tjitte · Jan 30, 2011 at 04:12 PM ·
errorsyntax-erroruce0001
at booster to an object
hello,
I am makeing a glider game. I have made this script to give it a boost vor 10 secons wen jou hit L-alt
var boost = 10; var Amount = 10;
function Update () { if (Input.GetButton("Fire2")) { float AmountFinal = 1 * (Time.deltaTime + -Amount); }
if (AmountFinal > 0) {
if (Input.GetButton("Fire2"))
rigidbody.AddRelativeForce ( 0, 0, (boost));
}
}
but I get this error:
boost.js(7,22): UCE0001: ';' expected. Insert a semicolon at the end.
can anywan solf this problem?
(srry for bad englisch)
Comment
Your answer
Follow this Question
Related Questions
Limit rotation for a statue puzzle 1 Answer
Collision Detector script 1 Answer
script help 2 Answers
Semicolon? WHAT? HELP ME! 1 Answer
Desintergrate Enemies on Dying 4 Answers