Welcome back.
Now we know that our damage types map is filled out for the ranged attack.
Now we need to make sure that our ranged attackers actually get granted this ability.
And once they're granted this ability, our behavior tree is going to attempt to activate it through
its behavior tree task attack.
And that tries to activate abilities by tag, which means we need an ability tag.
If we add the ability tag, we have abilities attack that needs to be there.
So now we can activate this ability via that behavior tree.
But we also need the enemy to have this ability and that involves going to ability system data under
our blueprints folder and going to our character class info data asset.
Now we see that our warrior is given the Gar melee attack ability.
Our Ranger now needs its ranged attack.
So for start up abilities, we're going to click plus and open the dropdown and choose Gar ranged attack.
And now we know if our range attacker has this ability because our behavior tree should be activating
it.
Now why don't we just go into our ranged attack and in event activate ability, let's draw a debug sphere.
And we'll draw it at the Avatar actor's location.
So we're going to get Avatar actor from actor info.
We're going to get its actor location.
We're going to plug that into the center.
Radius can be 50.
We can make the line color, say blue, and we can make the duration, say 0.5.
And now we should see a blue sphere if our enemies activate the ranged attack ability.
Let's go ahead and just save all and press play and we'll see what happens when those range attackers
get within attacking range.
And I just saw there they are, they're attacking, they're activating their attack ability.
This is great.
Okay.
So now we have our ranged attackers being granted their ranged attack ability.
It's just drawing a debug sphere, but things are coming together.
We have a projectile class to spawn.
We have a damage effect.
We have damage in our CT damage curve table.
Our ability tag is set.
So this is looking really good.
We now need to actually do something visual so that our ranged attackers look like they're attacking.
Right.
And that's going to involve montages.
And we'll get into that in the next video.
Great job and I'll see you soon.