🩸Edit Your Zombie AI
Here, you will learn what does the variables on inspector means.
Last updated
Here, you will learn what does the variables on inspector means.
Last updated
Normally, the system adds "Capsule Collider" to your zombie automatically. But if you want a sphere or box collider it is fine too! You can delete the capsule one and add a box or sphere collider too! Just make sure that your zombie has 1 collider.
Go to the "Capsule Collider" on your Animal GameObject.
Adjust the collider so it fits your animal model perfectly. Example:
This is a really important part, you don't need to set your settings the same as I do. Just adjust them as you like until you find the perfect settings for yourself!
Your AI won't work if you don't do the ZOMBIE AI ANIMATIONS tab!!
Go to the Player Resources tab and make sure your player is assigned or if your player spawns after the game starts, you select Setup Player On Runtime and put your player's tag!
Zombie Settings Variables
Explanations
Don't Disable Collider
The animal's collider will stay after death.
Can Run In Wander
Can the zombie run in the wander/patrol state?
Zombie Walk Speed
The zombie's walk speed.
AI Can Run?
Can the zombie run?
Zombie Run Speed
The Animal's Run Speed.
Min/Max Idle Length
How long can the zombie stay in the idle state?
Disable Child Colliders
Will disable the child colliders if there are any.
What is the difference between Line Of Sight & Trigger-based detection?
1- Line of Sight detects the player if only it is in front of the Zombie AI.
2- Trigger detects the player if the player is in its detection distance radius.
Zombie Crawl Settings Variables
Explanations:
Zombie Crawl Settings
Zombie's speed for crawling.
Stopping Distance
The crawling stopping distance to objects.
Follow Player Forever
Will the zombie follow player forever even if it can't see it?
Navmesh Settings Variables
Explanations:
Acceleration
The zombie's navmesh acceleration.
Base offset
Animal Detection Variables
Explanations:
Detection Type
How will your AI detect the player?
Head Transform
The head transform is used for the "Line Of Sight" detection.
Detection Distance
The max distance AI can detect the player
Detection Angle
The angle that the Line Of Sight system can detect the player.
Detection Layer
The Detection Layer (Make this same as your Player tag!)
Animal Attack Variables
Explanations:
Enable root motion on attack
This will enable root motion on the attack
Attack Distance
Distance to attack
Max Damage Distance
Max distance the zombie can damage the player
This part is on the next page. Click the button below to continue reading!
The base offset of the AI (I recommend checking this )