activating animations

hey, how could i activate one animation using two buttons :confused: i tryed this code below but pfft i don’t know how to do it and i carnt find nothing out there to help me,

function Update()

{

if(Input.GetKey(“W”,“mouse1”))

   animation.play ("Shoot");

}

i know this is probably wrong but at least i had a go at doing it lol if anybody could help please help :slight_smile:

Thanks

function Update(){
if(Input.GetKey(“W”) && Input.GetKey(“mouse 1”))
animation.play(“Shoot”);
}

You will have to check for 2 conditions using the && operator which obviously means “and”. If you want to say “or” you will use the !! operator.