So let's go ahead and add a rifle to our player for that.
If we open up the player main game object, then inside the manager, let's open up hips, then spine,
then spine, one spine to then open up the right shoulder, then the right arm, right forearm, then
right hand.
Then in the right hand open this right hand, thumb one, then the thumb to then the right hand, thumb
three, then four.
And right here in the right hand, thumb four.
And we will create a new empty game object by the name of a rifle holder.
Press enter after this.
Let's close this right shoulder for now and open up the left shoulder, then left arm, left forearm,
left hand, then left hand, thumb, one thumb to Tom three, four.
And then in the four.
And let's create empty game object by the name of rifle holder as well, because our player will be
holding two guns at the same time.
So we need two rifle holders in both of the arms of the player.
So now let's minimize the left shoulder as well and open up the right shoulder.
There is the rifle holder.
So let's go ahead and click on guns folder.
And in the guns go inside three fab ten gun models and here is all of the guns or you can say rifles.
So first of all, we will add our gun, okay, in the right hand of the player.
So just drag and drop it inside the rifle holder, then click on prefab and pack completely.
And in the next last video, you guys notice that we have added the gun animator to our player.
Okay, if we check the resources, we have created the gun animator in the previous video.
So now we have added the gun.
As you can see, we have the gun animator added and basically this will play the first animation, which
is this one.
Okay, so let's go ahead and play the game.
And as you can see, it played this shooting animation.
You can see the player is in the shooting animation.
Okay.
So now if we click on our gun and then get back to the scene view so that we can position our rifle
or you can say gun.
So what we will do is to now simply make this gun position accurately.
So you can do the same as I am doing.
If your character and rifles are different than make sure that you do it at according to your own game.
Okay.
So let me just quickly do that and then I will show it to you.
So I think this looks good in the player arms.
As you can see, it looks good like this.
And as you can see, the player is holding the gun, as you can see.
So now first gun is set accurately.
Now let's do this for the other hand as well, because our player will be holding two different guns.
So in the left shoulder, left arm, forearm, hand, then left hand, thumb, one, two, three, four.
And in the four last we have the rifle holder.
So what we can do is to simply duplicate this one and then drag and drop it inside the rifle holder
of the other hand.
And then let's move the position of this gun to this hand.
And now let's position it correctly as well.
So as you can see, it looks perfect like this.
We have both of the set correctly, as you can see.
Now, guys, don't stop the game because as you know that we are playing the game so that our player
will be in the shooting animation and then we will set the guns.
As you can see right here, we set it already.
Okay, now don't close the game.
First of all, notice these values of both of the guns.
Because if you stop the game, these values will be gone.
So just don't stop the game.
If you are using windows, then open up the snipping tool or you can use your mobile phone and just
capture these values.
Okay.
Or else you can do this is simply copy the component.
Okay?
But since we have two different guns, so we need to take a screenshot of one of the gun.
So I will take the screenshot or screenshot of this left hand gun.
Okay.
So what I would do is to simply click on you and let me capture these.
Okay.
So now as you can see, we have a screenshot of the left hand gun.
And for the right hand, what we can do is to simply copy the component values of it, or you can actually
take a screenshot of this one as well.
But I will simply click on copy component.
Now, if we stop the game, you will notice that our gun is gone and our gun position is now gone as
well.
So we have the right hand gun.
So what we will do, we will simply paste the values.
As you can see, the values is being paste, okay, you can notice it.
And now what we can do is to actually duplicate this again and move it inside the rifle holder.
Okay, so drag and drop it inside the rifle holder.
Now we have these values, so let's type these values.
So for the position X, it was -0.05, six four.
And then for the other one it was it was -0.04 to 4.
And then for the Z it was -0.0416.
Okay then let's change the rotation of it as well to
-55.011.
Let's change this.
The X rotation to
212.939
and then this one do 63.569
and now everything is set up already.
Okay, so now what we can do is to play the game again and now you will notice the guns will be in the
same direction in which we have added, as you can see, if we check the same view, there are the guns
already being set up now.
So what what you have to do is to simply add the animator, okay, to the player right here and then
play the game and set up all of your guns in one position, as you saw in this video.
And after setting it correctly, copy the values or you can actually take a screenshot of it and then
paste that values again when the game is being stopped so that the values say, okay, so now we have
the guns added, okay?
And the next thing which we need to do is to add some shooting to our rifles.