Before updating to Windows 10 you may need to return your Pro license. More information here

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, 2013 at 08:23 PM

avatar image

21 16 19 22

(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, 2013 at 08:28 PM

avatar image

76 1 6 8

(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



Answers and Comments



asked: Jun 24, 2013 at 08:23 PM

Seen: 598 times

Last Updated: Jun 24, 2013 at 08:30 PM