x


Animation & Script Help

First, Im new to Unity so i would like to make an animation, a very simple one. I have a First Person Controller holding a knife and i would like to make an animation so i swing the sword, easy. But, i need to also set up a basic script, just like GetButtonDown("Fire1") And this would trigger the animation, THANKS!

more ▼

asked Oct 04 '11 at 01:19 AM

fpsteele gravatar image

fpsteele
1 6 6 6

(comments are locked)
10|3000 characters needed characters left

2 answers: sort voted first

Use animation.Play("your animation's name");

more ▼

answered Oct 04 '11 at 02:17 AM

syclamoth gravatar image

syclamoth
14.8k 7 15 80

(comments are locked)
10|3000 characters needed characters left

I meant to say GetKeyDown, and all i have to do is get the script to play the animation when i left click

more ▼

answered Oct 04 '11 at 02:49 AM

fpsteele gravatar image

fpsteele
1 6 6 6

(comments are locked)
10|3000 characters needed characters left
Your answer
toggle preview:

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Topics:

x3776
x3732
x3329
x1172
x447

asked: Oct 04 '11 at 01:19 AM

Seen: 940 times

Last Updated: Oct 04 '11 at 02:49 AM