I have a weapon.It is AXE.Animated.
Please write here steps how to:
Attatch that weapon to FPS contoller and when I press mouse button it will play that animation.
help me Iam stuck.You know that feeling
Without sounding callous I suggest you work through the FPS tutorial:
http://unity3d.com/support/resources/tutorials/fpstutorial
Doing so will enlighten you on a lot of the aspects of developing a game and save you a lot of headaches later on.
I watched fps tutorial.but there is no weapon animation when shooting.A gun just stay in the same place even you shooting.
http://unity3d.com/support/documentation/Manual/Character-Animation.html
From in that page there is:
function Update ()
{
if (Input.GetAxis("Vertical") > 0.2)
animation.CrossFade ("walk");
else
animation.CrossFade ("idle");
}
You just need to modify that to suit your purpose, for example:
function Update ()
{
if (Input.GetMouseButton(0));
animation.CrossFade ("Swing");
else
animation.CrossFade ("Idle");
}
What script must be?
if I want to play axe animation when mouse button pressed? and where that script must be attacthed?