Welcome back.
Now that we have a goblin shaman, we need to make that shaman nice and dangerous and give it an attack.
So let's go into the mesh folder and check out the animations for the Goblin Shaman.
Notice we have Shaman Attack, and it looks like it's casting a spell.
Now, this is perfect for an Elementalist.
So we're going to want a nice attack montage.
Now I'm going to scroll down and make sure root motion is checked.
Enable root motion.
That way we can use motion warping.
So I'm going to right click on Shaman Attack and I'm going to create and we'll use create anim montage
here.
It's going to be m underscore attack underscore shaman.
We'll open this up and here's our attack montage.
Now I'm going to change the name of our first notify track to motion warping.
And we'll add another modified track and call this one events.
Just like we did with our others.
Now for motion warping, we're going to want to warp fairly early just like our others.
So add notify state motion warping will motion warp about this much we need to expand root motion modifier
and change the warp target name to facing target.
And we need to ignore translation.
So uncheck warp translation and set rotation type to facing.
And now motion warping is set up and we're also going to want to fire something, right?
So what I'm going to do is go ahead and place an anim notify right there where it looks like a fireball
would come out or something.
I'm going to add a notify, use montage event and select for that montage event.
Scrolling up the event tag and it's going to be montage attack weapon because we're going to spawn something
from the weapon.
Now that means we can add a tagged montage to our BP shaman, doesn't it?
We can go to BP Shaman, we can search for attack montages, We can add an element to the array and
we can select the montage.
It's going to be an attack shaman and we can choose the montage tag, montage, attack weapon.
And now our shaman is set up.
However, recall that there's something called a weapon tip socket.
If we search for weapon tip socket, we see that it's set to tip socket.
That's tip socket name.
But does our staff have a tip socket?
We need to make sure of that.
So let's get our weapon and browse to its skeletal mesh.
Let's open it up.
And I don't see a socket, so I'm going to right click and add a socket and call this tip socket.
As that's the name that our weapon tip socket variable is set to.
Here in our shaman.
Yes, it's called tip socket and we're going to want that to be up at the tip of the weapon, aren't
we?
So I'm going to put it right there.
I'm going to hit W and bring it up and over just at probably the tip of the skull right there at the
top of it.
I think that's a great place to spawn some kind of projectile.
So now we have a tip socket.
That's great.
We're sending a montage event with that montage attack weapon tag.
All that's left now is to give our shaman some kind of an attack ability, perhaps a fireball type ability.
And that is something that we can set up next.
So great job.
And I'll see you in the next video.