x


Mecanim shooting

I have three animations. All i do in one model with blender.

Walking Take gun up Shooting

How i can now put that my mecanim AI player walking walking walking and when it see me it takes gun up and then shoot? I try found in youtube some tutorial but not found. Only those if player itself press something it do something.

more ▼

asked Jun 24 '13 at 08:23 PM

mika132 gravatar image

mika132
21 4 8 11

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

1 answer: sort voted first

It's the same way! Put a script to your AI gameObject. Check if the Player is in range. If he is in range, play only the "attack" animation or set a time variable to play these animation once and switch to the walk animation again. All scripts you put to a player, you can put to a gameobject. (Without the players control). Split your animations in the properties applied to you model importet in unity(Animations tab)

more ▼

answered Jun 24 '13 at 08:28 PM

DerTeufel gravatar image

DerTeufel
76 2 3

(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:

x1493
x408

asked: Jun 24 '13 at 08:23 PM

Seen: 368 times

Last Updated: Jun 24 '13 at 08:30 PM