- Home /
Question by
habbla · Mar 25, 2011 at 09:29 PM ·
syntax-errorbce0044
Assets/Shoot.js(7,90): BCE0044: expecting :, found ';'. whats wrong?
public var BulletPrefab : Transform; public var BullletSpeed : float = 6000;
function Update () { if (Input.GetButtonDown("Fire1")) { if (!BulletPrefab || !BulletSpeed( { Debug.Log("[Shoot] 'BulletPrefab' or 'BulletSpeed' is undefined");
} else {
var BulletCreate = Instantiate(bulletPrefab, GameObject.Find("Spawnpoint").Transform.position, Quaternion.identity); BulletCreate.rigidbody.AddForce(Transform.forward * Bulletspeed); }
}
}
Comment
Your answer
Follow this Question
Related Questions
Code Not Working. Any Ideas? 2 Answers
Script error. Please Help! 4 Answers
BCE0044: expecting ':' found ';' 1 Answer
Basic on collision play animation code not working 1 Answer
BCE0044: expecting :, found '=' 3 Answers