here what my console box says:
assets/gun animations.js(43,1):BCE0044: expecting },found".
but hears the thing, line 43 doesn’t exist.
have a look:
var shoot : Animation;
var sprint : Animation;
var idle : Animation;
var aim : Animation;
var aimshoot : Animation;
function Start () {
animation.Play(idle);
}
function Update(){
if(Input.GetButtonDown("Sprint"))
{
animation.Play(sprint);
}
else if(Input.GetButtonUp("Sprint"))
{
animation.Play(idle);
}
if(Input.GetButtonDown("Shoot"))
{
animation.Play(shoot);
if(Input.GetButtonDown("Aim"))
{
animation.Play(aimshoot);
}
}
else if(Input.GetButtonUp("Shoot"))
{
animation.Play(idle);
}
if(Input.GetButtonDown("Aim"))
{
animation.Play(aim);
}
else if(Input.GetButtonUp("Aim"))
{
animation.Play(idle);
}
theres no line 43, it only goes to line 42.
PLEASE HELP!?!?!??!?!?!?!?