- Home /
BCE0044 error
var projecile : Rigidbody; var speed = 20 ;
funotion Update{}{ If (Input.GetButtonDown("Fire1")); { var instantiatedProjectile : Rigidbody = Instantiate( projectile, transform.position, transform.rotation); instantiatedProjectile.velocity = trasformDirection(Vector3( 0, 0, speed)); Physios.IgnoreCollision( instantiatedProjetile.oollider, transform.root.oollider); } }
I do not understand the error. I do not understand because me 13 years old :) but my error on line 5
Answer by fartyna · Dec 25, 2013 at 03:52 PM
it is not necessary. while I waited for the answer I have already solved the problem
Answer by KellyThomas · Dec 25, 2013 at 02:52 PM
"function
" is misspelt on that line.
When the compiler gives you an error like this it is very explicit. It tells you what it is expecting (but cannot find) or what it is not expecting (and does not understand). It usually tells you the line and character that it is having trouble with.
Learning to use these messages is a very important skill for a programmer.
Your answer
Follow this Question
Related Questions
How can I add time to a timer on an object collision? 1 Answer
Wait before being able to press button again 2 Answers
How do I make an object move on forward on itself and turn when player tilts phone 0 Answers
Particles For FPS Game 0 Answers
Get a total count of gameobjects with the same tag and change level if score reaches max score! 0 Answers