BP Construction - Target Spawner

7 minutes
Share the link to this page
Copied
  Completed
You need to have access to the item to view this lesson.
One-time Fee
$99.99
List Price:  $139.99
You save:  $40
€92.85
List Price:  €130
You save:  €37.14
£79.68
List Price:  £111.56
You save:  £31.87
CA$136.70
List Price:  CA$191.38
You save:  CA$54.68
A$151.38
List Price:  A$211.94
You save:  A$60.56
S$134.98
List Price:  S$188.98
You save:  S$54
HK$781.15
List Price:  HK$1,093.64
You save:  HK$312.49
CHF 90.48
List Price:  CHF 126.67
You save:  CHF 36.19
NOK kr1,087.35
List Price:  NOK kr1,522.33
You save:  NOK kr434.98
DKK kr692.92
List Price:  DKK kr970.11
You save:  DKK kr277.19
NZ$166.35
List Price:  NZ$232.90
You save:  NZ$66.55
د.إ367.25
List Price:  د.إ514.16
You save:  د.إ146.91
৳10,943.35
List Price:  ৳15,321.13
You save:  ৳4,377.77
₹8,337.18
List Price:  ₹11,672.39
You save:  ₹3,335.20
RM473.95
List Price:  RM663.55
You save:  RM189.60
₦123,487.65
List Price:  ₦172,887.65
You save:  ₦49,400
₨27,847.21
List Price:  ₨38,987.21
You save:  ₨11,140
฿3,675.50
List Price:  ฿5,145.85
You save:  ฿1,470.34
₺3,235.04
List Price:  ₺4,529.19
You save:  ₺1,294.14
B$507.19
List Price:  B$710.09
You save:  B$202.90
R1,850.71
List Price:  R2,591.07
You save:  R740.36
Лв181.51
List Price:  Лв254.13
You save:  Лв72.61
₩135,590.93
List Price:  ₩189,832.73
You save:  ₩54,241.80
₪371.66
List Price:  ₪520.34
You save:  ₪148.68
₱5,705.78
List Price:  ₱7,988.32
You save:  ₱2,282.54
¥15,304.96
List Price:  ¥21,427.56
You save:  ¥6,122.60
MX$1,696.83
List Price:  MX$2,375.63
You save:  MX$678.80
QR364.06
List Price:  QR509.70
You save:  QR145.64
P1,358.38
List Price:  P1,901.79
You save:  P543.40
KSh13,211.65
List Price:  KSh18,496.84
You save:  KSh5,285.18
E£4,788.95
List Price:  E£6,704.73
You save:  E£1,915.77
ብር5,723.72
List Price:  ብር8,013.44
You save:  ብር2,289.71
Kz83,591.64
List Price:  Kz117,031.64
You save:  Kz33,440
CLP$94,219
List Price:  CLP$131,910.38
You save:  CLP$37,691.37
CN¥723.65
List Price:  CN¥1,013.14
You save:  CN¥289.49
RD$5,794.19
List Price:  RD$8,112.10
You save:  RD$2,317.90
DA13,457.95
List Price:  DA18,841.67
You save:  DA5,383.72
FJ$225.30
List Price:  FJ$315.43
You save:  FJ$90.13
Q775.06
List Price:  Q1,085.12
You save:  Q310.05
GY$20,860.22
List Price:  GY$29,205.14
You save:  GY$8,344.92
ISK kr13,962.60
List Price:  ISK kr19,548.20
You save:  ISK kr5,585.60
DH1,005.73
List Price:  DH1,408.07
You save:  DH402.33
L1,766.28
List Price:  L2,472.87
You save:  L706.58
ден5,712.05
List Price:  ден7,997.10
You save:  ден2,285.05
MOP$802.57
List Price:  MOP$1,123.63
You save:  MOP$321.06
N$1,845.78
List Price:  N$2,584.16
You save:  N$738.38
C$3,670.67
List Price:  C$5,139.09
You save:  C$1,468.41
रु13,313.56
List Price:  रु18,639.52
You save:  रु5,325.95
S/372.22
List Price:  S/521.13
You save:  S/148.90
K385.44
List Price:  K539.63
You save:  K154.19
SAR375.01
List Price:  SAR525.03
You save:  SAR150.02
ZK2,689.66
List Price:  ZK3,765.63
You save:  ZK1,075.97
L462.03
List Price:  L646.86
You save:  L184.83
Kč2,326.92
List Price:  Kč3,257.79
You save:  Kč930.86
Ft36,193.38
List Price:  Ft50,672.18
You save:  Ft14,478.80
SEK kr1,078.64
List Price:  SEK kr1,510.15
You save:  SEK kr431.50
ARS$87,815.44
List Price:  ARS$122,945.14
You save:  ARS$35,129.69
Bs690.51
List Price:  Bs966.74
You save:  Bs276.23
COP$388,367.89
List Price:  COP$543,730.59
You save:  COP$155,362.69
₡50,962.55
List Price:  ₡71,349.61
You save:  ₡20,387.06
L2,463.20
List Price:  L3,448.58
You save:  L985.38
₲746,475.93
List Price:  ₲1,045,096.16
You save:  ₲298,620.23
$U3,821.56
List Price:  $U5,350.33
You save:  $U1,528.77
zł401.98
List Price:  zł562.79
You save:  zł160.80
Already have an account? Log In

Transcript

Welcome back everyone in this video Our goal is to create a blueprint capable of spawning in numerous targets at one time. So we will be able to spawn in any one of these given targets out here one at a time. But wouldn't it be nice if we could spawn in a whole set at one time let's make our lives easier right? So let's create a blueprint that will enable us to do that in our same folder where we've been creating all of our other actor blueprints. let's right click, blueprint class based on actor BP targets underscore set spawner is what I'm going to call this guy, double click on Open it up. And just like we've been doing, we're going to add some components to this one.

First thing we're going to add is a trigger. volume. So let's add some box collision and I'm just gonna name it trigger volume. And this time, let's go ahead and set some details for it right away while we're at it. So the box extents I've gotten mine for this one are 500 in the X 500 in the Y, and 200 in the Z, something kind of big. And then let's go down into the collision section.

Collision presets. Let's change that to be custom. And once again, let's change our projectile to overlap. Of course, we could set it to ignore as well. overlap is going to do the trick though. Okay, that one's gonna be good.

On Next let us select our default scene route once again. And we're going to add something called an arrow component. That's something that we have not added before. So component, you can just do a search for arrow. And what it's going to add is if I kind of click off in the view here, actually, let me select it and kind of move it up into the air is it is nothing more than just a red arrow out there. So what does this use for Well, this is basically a visual indicator here in this blueprint, and when we place this in the level for us to identify some point, in this case, we're going to be using this arrow to determine where we want a target to spawn in at.

So it's nothing more than just a place to identify a location in our case where we want a target to spawn in. I'm going to call this let me rename this to spawn targets underscore oh one. Then what I can do is hit Ctrl C on here and let's paste A few of them in here below it, I'm going to add five of these totals. So select your default SR Ctrl V to add one more Ctrl V to add another one and I'm selecting my default scene route every time I'm doing Ctrl V, and then once more control V. And I'm just going to rename these all quickly to spawn targets. Oh two, f two spawn targets 03 I have a bad habit of saying oh three instead of 03 but that is just me. So if you ever hear me saying, Oh, 304 etc, I really mean 0304 etc.

And spawn targets underscore 05. Okay. With all those in place, I do have some locational settings where I want all these to live by default. So let's start with Swan target. Number one, the location I want to set for this is x value of negative 1000 y value of negative 1000 and a Z value of 200. And I actually want to rotate this around a little bit.

So in the Z, I want to rotate it 90 degrees, so it's going to be facing in that direction. Now, these don't have to be contained inside of this trigger volume. This trigger volume is just what we're going to be overlapping our character is going to overlap to then determine where we want to spawn these targets in it. Okay, so that one's good. Let's go to spawn target number two. You know, let's do something real quick to that arrow component is really small out there.

Let's change the arrow size to be three. And of course, you don't have to have a red arrow color. You can change the color here as well, but I'm fine with that. So I'm just increasing The size of my arrow there to make it a little bit easier to see out there. Okay, spawn target oh two sorry, 02. Let's set some stuff for it.

Let's go locational setting of x, negative 500, the Y, negative 1000 and the Z i will go 200. This two I will rotate the Z at 90 degrees. Okay. I'll also increase the arrow size to three. Let's do spawn target oh three location, x of 500 y, negative 1000 Z of 200. And that arrow size I will change three times as big as well and I forgot to change the rotation of the Z.

Let's go to 90 Sorry I got the location for this one wrong, I could see I'm like one to the third one's supposed to be right about their location for spawn target three, let's just double back on that the x is going to be zero, y, negative 1000 and Z of 200. Okay spawn target number for the location is going to be 500 in the x, negative 1000 in the Y, Z of 200. And we're going to change the Z rotation to be 90 degrees, increase that arrow size to three times as big. Last but not least, we got spawn target number five, with that selected, x value of 1000, y value of negative 1000 and Z value of 200. And obviously, the Z rotation 90 and the arrow sign have three. All right, so that is going to do it all.

For this one, let's just Compile and Save. And I'm just going to drag and drop this in my level quickly. So you can kind of get a rough idea as to what this is going to look like. So the idea here and I'm just spin this around, is that we can make it so that when our character overlaps this trigger volume, we can have targets spawning up at all those arrow locations, boom, boom, boom, boom, boom, and we'll be able to identify which targets we want. We can even move these arrow components around as well but that's to come later. All right, guys, that is gonna do it all for this one.

We will see you in the next one.

Sign Up

Share

Share with friends, get 20% off
Invite your friends to LearnDesk learning marketplace. For each purchase they make, you get 20% off (upto $10) on your next purchase.