3D ENEMY AI in UNITY - (E03): TAKE DAMAGE & DEATH
Вставка
- Опубліковано 29 сер 2024
- Let's Finish Implementing the enemy AI behavior in Unity!
● 3D ENEMY AI (Part 01): • 3D ENEMY AI in UNITY -...
● 3D ENEMY AI (Part 02): • 3D ENEMY AI in UNITY -...
● Third Person Controller: • Create a Third Person ...
● Scripts Link: bit.ly/3zmQ8VB
♥ Don't Click This! : bit.ly/2Zi3vu9
♥ My Second Channel: bit.ly/3jvI8g6
--------------------------------------------------------------------
✅ My current Productivity Setup 👇:
● Gaming Headset: amzn.to/3HyXgp2
● Gaming Mouse: amzn.to/3ni4Ygp
● Best Webcam: amzn.to/44pVUqw
● Keyboard: amzn.to/3ALXB3M
● GPU: amzn.to/42mylNt
● CPU: amzn.to/44lOBjs
--------------------------------------------------------------------
FOLLOW ME:
● Facebook: / developer3.5pro
● Sketchfab: sketchfab.com/...
--------------------------------------------------------------------
► All content by GDTitans is 100% free. I believe that education should be freely available to everyone.
Thanks for this great tutorial!
It would be interesting if the dragon could damage the character and after 5 hits, for example, a message comes up: you died!
Thanks 😊
That's the topic of the next videos
@@GDTitans oh okay, i'm looking forward to it :)
@@GDTitans hello Sir, did yo ever do a video for the dragon damage the player? ive looked and can't find it.
You have created a very useful course. Thank you very much
Thanks for this great tutorial!
Glad it was helpful!
OnTriggerEnter needs a rigidbody component in 3D on the caller (Arrow)
Keep it going
Thanks 😊
Hey, just a heads up, the dragon sounds are not on the google drive anymore
Thanks
Where can I found the dragon sounds ?
Very good videos. Good Format explaining of content. like
Glad you enjoyed it
These courses are GREAT! TY so much. Question - Is there any way to make the arrows stay stuck in the enemy instead of floating? Or even disappear?
Destroy (this.gameObject)
After the arrows hit the dragon
does this work for raycasting?
My enemy is floating in the air when plays the death animation. I've disabled the Nav Mesh Agent and it plays well. Any ideias what went wrong?
You need to bake your area again
With the HP variable in the class dragon set to public, calling TakeDamage is unnecessary, I can just set the HP variable directly. If you want a variable to show up in inspector, keep it private to the class and make it a [serializefield], otherwise ANY class can change the HP variable.
Thanks for the advice.
It's a good practice in coding.
And there's another problem
I did everything you did and no sound is playing
where you downloaded these sounds
May I ask, can we use StateMaching to call a particleSystem?
why do you have Destroy(gameObject, 10); at the start function in your arrow script? what does this mean
Once the arrow is instantiated, this function will destroy it after 10 seconds.
Audio files aren't good
Where can I find sound effect for free please help
You did a great tutorial! but just a little help, when I shoot a bullet that I created on my own (I'm trying to make a fps game) the dragon is like having a force field and all my bullets just fly away when I shot at the dragon. Why is this happening? Thanks!
why doesn't the mesh collider work. I can only make it work with the box and capsule collider, for some reason the mesh collider doesn't recognise the shape of the dragon. How can I make it work?
For some reason my projectile does not trigger any reaction from the enemy. It just bounces off.
same
hey I just found out you need to tick is trigger on your whatever collider like a box collider to work
collider change collision if you want hit Dragon and use box collider
Hi, i did everything, but with bullet, theres no effect, no animation, just pass through it, any solution?
Make sure that the enemy and the bullets have a collider in order to work
Amazing tutorial so far, but iv hit a problem as I have tried this with a character who has a sword and when I hit the enemy nothing happened no animations are being trigger ? I have added Collison box to my sword on my player character but it seems to not be detected on the enemy 🤨 any idea what's going on here pls ??
I'm having the same problem
any update?@@loicrohan5017
did u fix this I am having the same problem
@@melted__ i think you need to add rigidbody both to the colliders, try it, i fixed it a long time ago but i couldnt remember
Do you have a solution for me
Mr.chaker?
Please atleast make Player Health script also...The series is not complete
My projectiles somehow can only hit the enemy in the attack state, what could be the problem?
Thanks for video how can we reach sound effects?
Mr.chaker I got a problem in unity endless runner 3d
Whatever I do in animation transitions it goes wrong
Run->slide works but
Slide->run never works
You have an idea of how to fix this?
Hi, may i know if this works for VR fighting?
Works as well, you just have to set up your Input system. Code remains the same.
Thx my friend but we need; when the player shot the enemy, enemy start to attack player. just like when player get enter enemy attack circle. Thx.
I get the wrong audios, when I click the link. The audios from the 2D series (Checkpoint, Click, Coins, First Jump,...). :(
Thanks,
@@GDTitans ???
Just thanks ahahahaa
@@turgaykirikkale3224 😂
Bro A small problem with my arrow when I Add A Box Collider To my Arrow And Enable Trigger Then Arrow Moving just front of my character and Floating In air Solution Please.
It seems your arrow hurts your character
I having a Issue in Take damage I dont know if the collider is not trrigged or what
the enemy is not taking damage
My weapon is a Sword I add the weapondamage on it like the arrow in this video and collider and attributes in the enemy
did u fix this i am having the same problem
@@melted__
Yeah, I forgot to add Rigid body Component
Do I have to add RigidBody to Weapon or Enmy?@@charlocabural9973
@@charlocabural9973rigidbody of what the dragon or the sword?
@@jhovanesparago8701 both because the dragon also has an attack and the player has a sword
My First Game Will Be "Horror Dinospaital"
hello where is the audio manager script?
Hi, I forgot to add it.
Thanks, for reminder
bit.ly/3zmQ8VB
Excuse me where is dragon sounds ?
Please uploade how to fix games crash on android device
can you tell me how to enemy attack damage player?
I will cover that in the next video 📹
@@GDTitans will you ever finish this and add attacking the player? You have another video series like this but it's with shooting the player instead of a melee attack. It would be suuper useful to see how it's done with the dragon's melee.
my dragon is dying in air help
I have a zombie and is dying in the air too. Did you find the solution?...
@@zackwilder1856 I had the same issue but found the answer in the Unity forums. Back in the animator controller if you open up the "Death" animation and on animation tab change the Root Transform Position (Y), Based Upon value to "Feet" instead of "Original".
@@dootieb Nice!!! Thank you very much!!!