WEBVTT

00:07.010 --> 00:13.100
Okay, so we're spawning in some minions, but the problem is they all spawn facing that way.

00:13.100 --> 00:17.000
And also we're not playing a montage for summoning.

00:17.000 --> 00:22.640
So that's what I'd like to do in this video and to play a montage, we need one.

00:22.640 --> 00:30.800
So we're going to go to assets, enemies, shaman animations, and we're going to make a summon montage.

00:30.800 --> 00:33.230
So here's our shaman summon.

00:33.230 --> 00:41.360
We're going to right click Create, and in Montage we're going to call this Am underscore Shaman, underscore,

00:41.360 --> 00:44.390
summon and open that up.

00:44.390 --> 00:48.800
And the first thing I'm going to do is just send an event.

00:48.800 --> 00:55.250
So I'm going to change this one in my notify tracks to event and right click.

00:55.250 --> 01:04.490
And I think I'd like to do it right about here towards the end, right click add, notify Montage event.

01:04.490 --> 01:06.720
And what is the event tag?

01:06.720 --> 01:10.680
Well, it's going to be a summon actually.

01:10.800 --> 01:16.230
So we could use montage attack one for this for now, that's totally fine.

01:16.230 --> 01:23.550
And in our summon ability, what I want to do is play a montage and wait just after we've shown these

01:23.550 --> 01:24.420
effects.

01:24.420 --> 01:30.840
So right before our delay here, I'm going to take all of these nodes and move them out and we're going

01:30.840 --> 01:35.220
to play a montage and wait right here after the for each loop.

01:35.220 --> 01:37.800
So play montage and wait.

01:37.920 --> 01:41.190
We're going to select that montage for now.

01:41.190 --> 01:44.820
I'm going to hardcode in that summon montage.

01:45.960 --> 01:52.680
Like so and after play montage and wait we're going to wait game play event.

01:55.010 --> 01:57.530
And we're going to wait for that attack.

01:57.530 --> 02:06.140
One gameplay tag that we sent and on event received, that's when we're going to continue summoning

02:06.140 --> 02:07.790
all of the creatures.

02:08.430 --> 02:11.520
So let's see what happens if we just play.

02:13.200 --> 02:18.830
And it looks like we're just continuing to spawn.

02:18.840 --> 02:20.790
It doesn't look like we really.

02:22.260 --> 02:24.600
Got anything the first time?

02:29.140 --> 02:36.190
We spawn some minions a couple times there, and that's probably because we have too high of a delay.

02:36.310 --> 02:43.630
So we can play montage and wait, and I don't think we need that delay anymore as we're now waiting

02:43.630 --> 02:45.780
for the gameplay event.

02:45.790 --> 02:48.520
So let's see how it looks without a delay.

02:52.650 --> 02:55.530
I think that our event is too late.

02:55.560 --> 02:56.680
We're going to have it.

02:56.700 --> 02:57.690
Let's see.

02:58.620 --> 03:01.920
Let's have our event a little earlier, like right there.

03:06.580 --> 03:08.040
Think that looks better?

03:08.070 --> 03:10.470
We could even have it slightly earlier.

03:15.760 --> 03:16.960
I like that.

03:17.260 --> 03:19.270
Maybe even a little earlier.

03:19.300 --> 03:25.270
We just need a split second before those demons get spawned.

03:26.210 --> 03:28.790
Yeah, I think that looks better a lot faster.

03:28.970 --> 03:32.660
Okay, so we do want to limit how many we spawn.

03:32.660 --> 03:33.860
We'll get to that.

03:33.860 --> 03:42.200
But for the rest of this video, I want to concern myself with the orientation of these demons that

03:42.200 --> 03:42.920
spawn in.

03:42.950 --> 03:45.640
So I'd like to calculate a spawn rotation.

03:45.650 --> 03:47.430
Now, that could be pretty easy.

03:47.450 --> 03:49.730
I'm going to get the Avatar actor location.

03:49.730 --> 03:52.700
So get Avatar actor from actor info.

03:52.730 --> 03:54.410
I'm going to get its location.

03:59.010 --> 04:07.020
And I'm going to find the lookout rotation from the actor location to this location here, the spawn

04:07.020 --> 04:08.520
transform location.

04:08.520 --> 04:12.240
So we're going to use find look at rotation.

04:13.280 --> 04:15.200
Only I'd like the opposite of that.

04:15.200 --> 04:21.590
I want the lookout rotation from the spawn location to the shaman.

04:21.590 --> 04:27.560
So I'm going to have this one go in first and this one go in second to the target.

04:27.560 --> 04:30.740
And that's going to be the spawn transform rotation.

04:30.740 --> 04:36.170
So the lookout rotation looking from the demon to the shaman, or is that.

04:36.170 --> 04:38.630
I think that's the opposite of what I wanted, actually.

04:38.630 --> 04:39.140
Yeah.

04:39.140 --> 04:44.600
So the opposite I want from the shaman to the demon location.

04:44.600 --> 04:46.250
So let's swap that out.

04:48.960 --> 04:53.450
And now the demons will be facing outward, away from the shaman.

04:53.460 --> 04:54.900
That's what I wanted.

04:55.410 --> 04:56.250
Cool.

04:56.580 --> 04:57.360
All right.

04:57.390 --> 04:58.650
Things are coming along.

04:58.650 --> 05:00.990
We're spawning a lot of enemies.

05:01.020 --> 05:02.100
Way too many.

05:02.100 --> 05:08.910
And one last thing before we wrap up is notice when we get a summon, there's a little bit of a foot

05:08.910 --> 05:12.090
slide at the end of that summon montage.

05:12.150 --> 05:14.910
That's actually pretty easily fixable.

05:14.910 --> 05:23.010
If we go into our shaman, summon animation and scroll down to enable root motion.

05:23.010 --> 05:29.010
If we check that, then we won't be able to have our shaman move while it's in this animation.

05:29.010 --> 05:33.240
So if we click play, we'll see that it stays put until the end of that.

05:33.480 --> 05:36.240
Shaman summon animation.

05:37.070 --> 05:37.910
All right.

05:37.910 --> 05:44.210
So we have a lot of enemies being summoned, but that's something we could easily fix and we'll take

05:44.210 --> 05:45.410
care of that soon.

05:45.410 --> 05:48.110
So excellent job and I'll see you soon.
