- Home /
Question by
Matthewjs98 · Jun 12, 2013 at 12:03 PM ·
errorbce0044false
False Errors? BCE0044 expecting :, found ";"
i was making a grenade for my fps game but it kept giving the false error or at least i think it was a false error. the error was BCE0044 expecting :, found ";" but i dont know why it is saying that
Here is the script. the part Throwg(); is where its giving me the error but when i remove it it gives me the error but on the line below it
function Update ()
{
if(Input.GetButtonDown("Granade"));
{
Throwg();
gameObject.animation.Play(Throw);
animation.[Throw].speed =2;
}
}
function Throwg()
{
yield WaitForSeconds(2);
var gren : Rigidbody = Instantiate(Granade,Spawn.position, Spawn.rotation);
gren.AddForce(gren.transform.forward*ThrowSpeed);
gameObject.SetActiveRecursively(false);
}
Comment
Answer by Bunny83 · Jun 12, 2013 at 12:15 PM
Remove the semicolon behind your if statement in line 3!
edit
And i'm pretty sure line 7 should look like this:
animation[Throw].speed = 2.0;
Your answer
![](https://koobas.hobune.stream/wayback/20220613104027im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Multiple Cars not working 1 Answer
BCE0044: expecting (, found 'OnTriggerEnter'. 1 Answer
BCE0044 expected EOF and } found 'else' Help me Please!! 1 Answer
Joystick issues 2 Answers
Why is my terrain all grey? 1 Answer