All language subtitles for 12. Zombie AI

af Afrikaans
ak Akan
am Amharic
ar Arabic
hy Armenian
az Azerbaijani
eu Basque
be Belarusian
bem Bemba
bn Bengali
bh Bihari
bs Bosnian
br Breton
bg Bulgarian
km Cambodian
ca Catalan
ceb Cebuano
chr Cherokee
ny Chichewa
zh-CN Chinese (Simplified)
zh-TW Chinese (Traditional)
co Corsican
hr Croatian
cs Czech
da Danish
nl Dutch
en English
eo Esperanto
et Estonian
ee Ewe
fo Faroese
tl Filipino
fi Finnish
fr French
fy Frisian
gaa Ga
gl Galician
ka Georgian
de German
el Greek
gn Guarani
gu Gujarati
ht Haitian Creole
ha Hausa
haw Hawaiian
iw Hebrew
hi Hindi
hmn Hmong
hu Hungarian
is Icelandic
ig Igbo
id Indonesian
ia Interlingua
ga Irish
it Italian
ja Japanese
jw Javanese
kn Kannada
kk Kazakh
rw Kinyarwanda
rn Kirundi
kg Kongo
ko Korean
kri Krio (Sierra Leone)
ku Kurdish
ckb Kurdish (Soranรฎ)
ky Kyrgyz
lo Laothian
la Latin
lv Latvian
ln Lingala
lt Lithuanian
loz Lozi
lg Luganda
ach Luo
lb Luxembourgish
mk Macedonian
mg Malagasy
ms Malay
ml Malayalam
mt Maltese
mi Maori
mr Marathi
mfe Mauritian Creole
mo Moldavian
mn Mongolian
my Myanmar (Burmese)
sr-ME Montenegrin
ne Nepali
pcm Nigerian Pidgin
nso Northern Sotho
no Norwegian
nn Norwegian (Nynorsk)
oc Occitan
or Oriya
om Oromo
ps Pashto
fa Persian
pl Polish
pt-BR Portuguese (Brazil)
pt Portuguese (Portugal)
pa Punjabi
qu Quechua
ro Romanian
rm Romansh
nyn Runyakitara
sm Samoan
gd Scots Gaelic
sr Serbian
sh Serbo-Croatian
st Sesotho
tn Setswana
crs Seychellois Creole
sn Shona
sd Sindhi
si Sinhalese
sk Slovak
sl Slovenian
so Somali
es Spanish
es-419 Spanish (Latin American)
su Sundanese
sw Swahili
sv Swedish
tg Tajik
ta Tamil
tt Tatar
te Telugu
th Thai
ti Tigrinya
to Tonga
lua Tshiluba
tum Tumbuka
tr Turkish
tk Turkmen
tw Twi
ug Uighur
uk Ukrainian
ur Urdu
uz Uzbek
vi Vietnamese
cy Welsh
wo Wolof
xh Xhosa
yi Yiddish
yo Yoruba
zu Zulu

Original subtitles

So in this video, we are going to sort out the zombie now zombie moves more effectively and actually

avoids these tombstones, et cetera.

First of all, we have obviously three different characters.

They do need to be dynamic, which means that we can't click static.

If you click static, they won't move.

They'll they'll be positioned where they are.

Now, we've noticed on the ground anything that's marked static, it batches all of these together or

almost as though they have one single object.

There is something called dynamic bachi, click, edit and project settings.

And we go to

kid's player and other settings should see static dynamic bachi.

All right.

So you can actually click that and what it will do and it will actually find all objects that are exactly

the same.

So in other words, this fall, zombies, they all share the same material.

They're all relatively low poly.

So it will actually batch them together.

So instead of rendering for different zombies, it technically just renders one zombie.

As for instances of them.

All right.

That's going to help us in our profile.

It only really works on low poly objects if it's really high poly object and it's got loads of polygons.

The computer simply can't handle the bachi.

All right.

But it will work perfectly for this game.

OK, so somebody needs to know where these tombstones are.

The best way to do this is to actually create a navigation match.

So if I go to window and I navigation, we get this little area and.

And what we need to come down to is the Baekje section, the BAIK section is going to look at anything

that static.

And that doesn't move and it's going to exclude it from the areas where the zombie can walk into.

So what I'm going to do, simply click, bake.

All right.

It's going to create this little blue section.

Notice how it's not going around these tombstones.

All right.

So any of these areas where it's cut out of zombie cannot walk through.

It also means that you can't walk through walls, that kind of thing.

So he's now basically going to have to kind of walk around these sections now in order for this to work,

the zombie character will also need to have enough mesh agent that can actually walk around here.

So if I go over to my inspector and other component, I'm going to type no match agent.

First of all, OK, this adds this little cylinder around the character and.

The speed can be defined here.

OK, so the speed on this one, I'm probably going to have him walk relatively slow, so about zero

point to five.

If it's too fast, it's almost like he's going to be running toward the player.

Never mind.

This blue section only shows up when the navigation tab.

All right.

So that's now going to enable him to walk around.

Now, for this, I do need another script.

And fortunately, it's only going to up to only going to work on the zombie.

Actually, no, I don't need to know the script.

I can actually just run it through the anime movie script.

No problem.

But to do that, I need to define what's a zombie, what's about what's a ghost?

So to do that, I'm going to create a public offsite ball.

Leon can either be true or false.

And I'm going to call this zombie, the public bull old, but in another public mold called Ghost.

So if I now save this.

Wait for that to compile.

It's now on my ZOMBI, I can just check that box.

So now I know that's a zombie on my butt.

I can say that's about my ghost.

I can say that's a ghost.

All right.

So now we can use that.

So in the update, we don't want this command to work for the zombie, but we do want it to work for

the bat and the ghost.

So what we can say is if.

But is equal to true to equal science, and we need to use it all.

That's basically two of those.

And the way I did that was shift my backslash and that gives me to what else?

OK, or ghost is equal to true.

If either of those are true, then it will basically run this.

So just put in some curly brackets in the extra shift and square bracket on my keyboard.

OK.

If it's a zombie, it's going to completely ignore that.

OK.

The reason why we want a zombie to be moved by enough Meche agent.

Now, I know this.

To do that, we need to tell you that we use in an.

Ay, ay, ay, ay, ay, ay, ay, ay.

All right.

So artificial intelligence.

So using the unity engine there a reason why why we have to do that.

The A.I. definitions of definitions for things like navigation agent, which we need to define.

So we're going to say pablic of time, nav mesh agent.

Will simply call this agent.

Now, in the start, I am actually going to bring this back again.

I'm going to call my own function.

All right.

We call it.

Oh, sorry.

I need to do it in CyberKnife.

Only if it's a zombie.

So if the zombie is equal, it's true.

I'm going to run my own custom function.

I'm going to create when they call this move to.

Not move towards, but move to.

There we go.

It will remain red until they actually create this, make sure it's outside of the date.

So I'm going to say Voit and.

Moved to and go changes to yellow to say that it's now a custom function, and then inside of this,

I simply want to say move my agent, which my not my agent over to other the player is.

So I'll say agent destination equals play a target position and that's it.

All right.

Oh, make sure I spell destination.

Correct.

And that's it.

That will basically move the zombie notice.

I've called this in its own custom function.

I could place the agent of destination in the update, but then it's basically going to be given that

command each and every frame with enough match agent.

It's not necessary.

You only need to tell it once and it will do it until it actually reaches that clear target position.

Which is why I'm calling on the start, because that's only wrong once right at the beginning of the

game.

And then the move to gets called pretty much once in the zombie lifetime.

All right.

So once again, we're optimizing instead of running every frame, we're running it once.

OK, so let's save this.

And only on the zombie character do we need access to that nerve agent, which is there.

Just drag that into that slot on the part and the ghost you can actually leave.

Those is no no problem, because they're never being called in that script.

It's only called if zombie is equal to true.

Only then there's actually access to agent.

So let's try this now in the simulator and see the difference.

Notice the zombies now moving around that tombstone.

OK, so he's not walking to the tombstone, he's going extremely slow.

There we go.

All right.

So he's avoiding notice notices, also staying on the ground.

The Namche agent will always stay on the ground.

The others can be floating because one's a ghost wants about.

All right.

Doesn't need to be on the ground.

And if you want that zombie to be a little bit quicker, you can, if you like, just change the speed

here and then not much agent.

Can't find what you're looking for?
Get subtitles in any language from opensubtitles.com, and translate them here.