- Home /
Question by
ryand444 · May 03, 2012 at 03:03 PM ·
javascriptshootingfirstperson
a problem with shooting scripts
i am currently working in a first person game and i am attempting to script a shooting ability in Java script however an error with the code keeps appearing that i do not understand also not that i am only just starting in unity as well as coding.
here is the error : Assets/ShootScript.Js9(3,4): BVE0043: Unexpected Token: ..
here is the actual script:
Untitled.png
(247.3 kB)
Comment
Best Answer
Answer by BiG · May 03, 2012 at 03:03 PM
It's
var prefabBullet : Transform
,without the dot between them. That code is not complete, by the way. There are not closed brackets.
Answer by magento1 · May 07, 2012 at 02:27 PM
You can get the solution by removing the dot or else var prefabBullet =Transform
EDIT: removed advertising