WEBVTT

00:06.820 --> 00:07.850
Welcome back.

00:07.870 --> 00:10.150
Now our ability draws a debug sphere.

00:10.180 --> 00:10.780
Great.

00:10.810 --> 00:13.360
We've seen enough of those in our lives, haven't we?

00:13.390 --> 00:19.110
We want to play a montage, which means our ranged attackers need an attack montage.

00:19.120 --> 00:22.510
So why don't we go and see what assets we have?

00:22.540 --> 00:28.750
We're going to go into assets, enemies, goblin animations, slingshot.

00:28.750 --> 00:31.120
And here we have a few things.

00:31.120 --> 00:32.680
We already have the hit React.

00:32.710 --> 00:39.680
Here's an attack slingshot animation and here's what it looks like now without a slingshot in its hand.

00:39.700 --> 00:41.320
It doesn't look like much, does it?

00:41.320 --> 00:47.020
But we're going to make this look like something very convincing for this little guy.

00:47.050 --> 00:52.360
We're going to make an attack montage for this, so let's do it.

00:52.390 --> 00:57.670
Now we are going to want root motion, so I'm going to scroll down and make sure enable root motion

00:57.670 --> 00:58.430
is checked.

00:58.450 --> 00:59.490
It is.

00:59.500 --> 01:06.430
So now I'm going to right click on the attack animation, go to create, create anim montage and call

01:06.530 --> 01:12.340
this aim underscore attack goblin slingshot.

01:12.410 --> 01:14.720
So we now have an attack montage.

01:15.050 --> 01:18.680
Now our attack montage needs a couple of notified tracks.

01:18.680 --> 01:24.110
We are going to want to do motion warping so it orients in the correct direction.

01:24.110 --> 01:30.740
So I'm going to rename the first notify track to motion warping and add another notify track called

01:30.740 --> 01:31.550
events.

01:31.730 --> 01:38.060
And for motion warping, I'm going to make a motion warping notify state, right click, notify state

01:38.060 --> 01:46.910
motion warping and I'm going to have him rotate from the beginning to just about before letting go of

01:46.910 --> 01:48.340
the slingshot pouch.

01:48.350 --> 01:49.570
So about there.

01:49.580 --> 01:50.870
So pretty quick.

01:50.870 --> 01:57.290
And we do need to expand root motion modifier and change warp target name to facing Target.

01:58.040 --> 01:59.630
That's our warp target.

01:59.660 --> 02:01.760
We're not going to warp translation.

02:01.760 --> 02:07.450
We're going to scroll down and make rotation type facing and we have motion warping.

02:07.450 --> 02:14.680
Now we need to decide when we're going to launch our projectile and that's going to be just about here.

02:14.710 --> 02:21.310
We're probably going to tweak this once we implement having a slingshot, but we're going to right about

02:21.310 --> 02:24.190
where we let go of this slingshot.

02:24.190 --> 02:32.260
So about right here, when that hand goes back, right, right about here, that's where I'd like to

02:32.260 --> 02:33.730
launch the projectile.

02:33.730 --> 02:41.140
So I'm going to right click on my events track, add, notify and Montage event, select that, and

02:41.140 --> 02:44.530
we're going to want to set that event tag.

02:44.530 --> 02:48.250
And the event tag is going to be montage attack.

02:48.250 --> 02:53.860
And we're going to choose weapon because we want the socket on our slingshot weapon.

02:53.860 --> 02:58.090
And the socket on the slingshot weapon is going to be its pouch.

02:58.090 --> 03:01.810
So we're going to choose montage attack weapon like.

03:01.810 --> 03:09.620
So now we know that we have an array in our base character class that is a tagged montage.

03:09.620 --> 03:16.700
In other words, we link up the montage with this event tag so we choose the correct socket.

03:16.700 --> 03:18.500
So we do need to do that.

03:18.530 --> 03:23.420
Now that's going to be in our Goblin Slingshot blueprint.

03:23.420 --> 03:30.200
So we need to go into content, blueprints, character Goblin Slingshot and open that blueprint.

03:30.230 --> 03:33.530
I'm going to go ahead and open the full blueprint window.

03:33.530 --> 03:39.440
And here we need to search here for attack and we have attack montages.

03:39.440 --> 03:46.580
I'm going to click plus add an element to that and select my goblin slingshot attack montage, aim,

03:46.580 --> 03:48.350
attack, goblin Slingshot.

03:48.350 --> 03:54.200
And for the montage tag, we're going to go to Montage Attack and Choose Weapon.

03:54.200 --> 04:01.160
So now that that is set, we now have the ability to play an attack montage and then retrieve the correct

04:01.160 --> 04:04.610
socket that corresponds to that attack montage.

04:04.610 --> 04:10.880
And that way we can spawn something from the socket and the socket is going to be on the slingshot.

04:10.880 --> 04:15.140
And by the way, the slingshot does have a socket if we select our weapon.

04:15.560 --> 04:17.480
And we browse to it.

04:17.510 --> 04:19.910
Here's the skeletal mesh for the weapon.

04:19.910 --> 04:23.480
And the weapon has a socket called pouch.

04:23.480 --> 04:27.650
And believe it or not, this pouch can move.

04:27.650 --> 04:34.610
And we actually have weights skinned on this slingshot, which is pretty awesome because we're going

04:34.610 --> 04:40.550
to want to stretch that thing out and make it look like our slingshot flings forward.

04:40.550 --> 04:46.270
In fact, our slingshot has a slingshot attack animation, which is doing just that.

04:46.280 --> 04:51.950
It looks pretty funny, but it's pretty cool because if we play that animation, then that pouch will

04:51.950 --> 04:55.430
fling forward and it'll look like we're shooting that slingshot.

04:55.430 --> 04:57.440
So pretty sweet.

04:57.560 --> 04:58.850
So this is great.

04:58.850 --> 05:01.070
We're one step in the right direction.

05:01.070 --> 05:08.180
Our goblin has a tagged montage on it and it's attack montages array.

05:08.180 --> 05:14.210
And this is great because now we can actually play a montage and spawn a projectile.

05:14.210 --> 05:17.560
So we're going to do those things in the videos to come.

05:17.580 --> 05:20.070
Excellent job and I'll see you soon.
