Welcome back guys
In this video we're going to called the summoner
Alright so let's get started
Right away
The very first thing I'm going to do is to make it
Prefab algebra seminar
CBB drag and dropping him into
Prefabs folder
I'm also going to the same with our minions
Australian job the minion
Onto
Prefabs folder
Write perfect or now going to Jess
Remove the minion from the scene
Now because he is all set up
From the preacher
Vigil
Thought for the Summoner conflict in
If I was to do is add a box character
Today
WordPress de
Licklider
Adams got secrets
Has you like
Ok once that's been done I'm going to add a widget
Body to cheek
Component
I would sit in gravity skills
0
And other constraints
To the dead x
Multiples remember to and the enemy tank
LDN Amelia
Too dissimilar
Alright are we have to now do is
Audi A7 description
And one size b
Increases risk of
Doubleclick.net and
Start calling him out
How are Summoner is going to work
Basically the first thing he's going to
How to do is take a random position on the map
And move towards that position
Once it arrives
And that position
Is it going to start spotting every x seconds
A small little minion
You also Lee
It was a player
Just like many only does
If the
Baguettes
To close
I'm going to do is create for public variables x
Max x
Midway and Maxwell
Ok next Swansea
Create a private
Victor two variable called target
Position
This people cable store the position of the selected area on the map
Or she will be spoiling his minions from
And then last year we need to eat
Private
Animator rouble called Adam
Which is just a reference
2D animated as attached
Stamina
Search we can teeth
The animation speed on a few
Summoning ortiz running towards his target position now let's Create or void start funk
Is before we forget we have to derive from a enemy script
So we can replace mother behavior with
Enemy perfect
Sort now does one no problem with the start function because instead of enemy script we also have
Easter pugs
Does load of CO2 we have to do to make this all work
Christopher Lynn dnscrypt
Start function Google to make it public I'm going to add
Keywords virtual
Nanette Steve dance and in st. offer some of the
We're also going to make you start puncture
Public I'm going to ASDA Swanley cures override
So basically what this is doing is that
Instead of running disturb function
Is going to other writers and we're going to run this start function
I'm right here
With our case
We still want at 2
Find a player but we also want to add some code on top of it
So we're going to have to say please
Darts darts
And that will call the start function from a base class
Marquee
The enemy
What is the one that's been done we have to
Calculate our targets
Position to that I was creep to float variable
The first one to be called floats
Random x
Just going to be
O2 random range between
Mintex
An access
The sensor is basically going to create a random number
Between Armin x
Edimax
Xperia boot without going to just
Copy and
Peace desirable I don't need
Do the same for the Y
I want the prices are two random variables I'm just going to
The set of target position
Equal to in you
Victor two
X value will be equal to
Brandon x
And a y value will be quotes
Two random y
The symbol of that
Lastly we're going to centre Annan
Variable
Equal to get components
Animator to get reference to our animator
Script
Awesome
Alright next thing we have to
To do is to make him move towards his target position
So
Inside of our bodies function
The first thing like you said we have to do is to check
If the player is not equal to null
He says if he's alive OK Google to check if
Victor two
Distance
Between our transform
Top positions for care position
And
The target position
So if the distance between our current position and
Target position
Is greater than something like 0.52
I just put any small value in here
Then that means you're still too far away from a target position
We want to move towards there no bit more to sort was gonna loser transformed opposition
Owl City
Equal to of course tea
Victor two
Dot move towards function
Rapacity transform
Doctor the same targets
Position
Adele
Space Odyssey
Speed
X
Time
Delta
Alright
That's great
Not so we're going to see and Pitbull is running
Distance you will basically play Japan
Animation
Perfect
Brighton Alex Seaver script and test herself inside of Unity without using my voice over
Ronaldo could help
Value of 2
Speed up boot
20
The time between the tax payable for now
Respond to something like
2
Damage after 1 minutes
Max x
And so on
Variables
WhatsApp where is going to go somewhere
And moving all the way to the border of the map just like we did for the camera full script
There was going to nuke
Out of the X value of Puppets
And Peace it's right
This is the same for all four corners
Once you finish filling out your balls
Speaker press to playback
How to get CD necromancer select a random position on the map next to do is to make him spawn his minions
Once his reach
Stayed his
Target position sore after we have check the distance
The top position and target position
I'll just make a l statement
So if you're inside the selfies with that means that we have reached or
Our target position
Also if we have reached our target position
Then we want to see anon
Dot sit brel is running and resetting
The Fosters
Next off we want to start summoning Armenian
The fall down so we need to create two variables a public float variable for the time between summons
Andy private block variable for the salmon
Time is that offer also going to make if statements checking if
52 games
Time not time
Is Greta
Cold in the summertime
If it is down with a 67 time
Back go to the current owner game September time
Adding a course to SD
Time between summons
Very buy now how are we going to Sam in Armenian
We're not too cold just a simple function
Google do something cold animation events
Basically the animation event is just
Agenda of you playing
And animation dear will call a function at a specific frame of it
Animation using this because we don't just follow minion at the beginning of the animation we will dispose Armenian once the cylinder
Has landed back on the floor after his duct it'll give a more impactful feeling to the summit
Something we going to CNN
Dot set Trigger
Are we called that salmon and little letters
47 animation
Now it's off to see the Script
Change one thing in cell filter
Was Elizabeth II I'm going to set the summoner and then open up
The animation window going under window and then selecting
Animation will then select the 7 animation from this drop-down and then simply select
Freeman 27 the last back on the ground so that will be around
And then does Prestige
Add event button right here as you will see Dalby dysfunction drop down there. And here we can select
A function that will get cold
What's the animation reaches
Disappoint
So let's go back to the script and
And crazy salmon function
The right underneath eyelid function and going to create a
Public void function tool
Simon Says function else if we check if the player is not equal just a simple safety check so if you
Is it equal to lol I will said we in
Instantiate
Respond Armenian
The first premature Weezer passing is what
What do we want to spawn
So far so it's come up here and
Create a public
Enemy variable
Call enemy
To summon alright then
I use that enemy to summon variable
In here the weather specified position the world's instantiate object from substance use transformed opposition
After the rotation I use
Transform
Dot Boutique
Awesome
RC the script and test out instead of your answer
Rachel interview 80 I'm going to go to a drop down and select the 7 functions
Then I'll select the summoner
Top of the time between summons I've children to use the value of 5
And then we just have to go inside other prefabs
Folder and drag and drop Armenian
On to the enemy to 7 slot
No he press the play button
You'll see that the sunroof here and the position on the map
Just Dance doing his island nation and
And every 5 seconds you'll be
Spawning cheese million characters they will chase the
The player are real
Write a 100 problem has
How do you see is that
Minions
Are rotating a little bit weird a
That's because
If we select a minion
We forgot
How to add a full rotation on
Xanax
So you just press that
It will fix
By the by lasting do we need to add stability for the seminar
2leep
Towards the
Player if you gets to Newham
Was going to go inside after you and me script and I'll just copy
Dimelo
Attack
Cortina
LLP stood inside of the seminar script
We don't have to Christine Elliott attack
Speed variable some was going to come up to the top a skirt
An Audi public float
Milliyet
Afterwards going self made millionaires groups and copy
This is different you're checking this
Distance between the transforms opposition
And the. Up with
Copy that
Pistas right here
Replacing it inside of
The estates men's checking if the player is die cutting
If the vector to the distance between throttle position and a preposition
Is
More
And stop distance
Do we have to create
So let's cut the top off
Office catering
Also d
Public
Plot
Stop distance
Barrel so if the distance is smaller than stop distance then we don't move to
Towards
Anything but we want to do our Nellie attack
Tesco's Alfreton be script and I'll just selected of course here for the timer
Repeater inside
Woodend Estates
Is created the time available and
And cream
Private
Float
Tyler Wright Surfer now see The Script
Everything should be all set up
Great soldiers
Say
8
30 ml attack speed
And I'll give it to stop distance
Rights of Now press the play button
One last time and also as you can see
December leaves
Towards the player if
If you get studio
Awesome guys
Demas en off this video I hope you enjoyed it and I'll see you in the neck