Quote Originally Posted by ResistanceRage View Post
So i'm gonna make this thread short if u need more information just ask this is really annoying how can i fix it?


Here is my script code ( i just started making it and i noticed that when i press the fire1 mouse button it can't find animation
)

-------------------------------------------------------

function Update (){
if (Input.GetButtonDown("Fire1"))

animation.Play("shoot1");


}

-------------------------------------------------------------

I've attached a photo...

I see this section isn't very active hope someone can help...


do it like this:

var FireAnim : GameObject;

function Update ()
{

if (Input.GetButtonDown("Fire1"))

animation.Play("shoot1");


}



-------------------------------

you have to add your anim to inspector and make sure its the same name as gameobject