Wave Based Spawning and Spawner Management
by Jordan Rarrat
Part 1: The Problem
This week, one of my main tasks was refining enemy AI behavior. I decided on using Set Focus from AIController so that the enemy can consistently stay locked onto the closest player however my enemies could not focus and stayed idle.
Part 2: The Solution
I fixed that issue by writing a service node in the behavior tree that runs every tick. this service iterates through all player actors in the world, calculates the distance to each from the enemy and sets the blackboard key to the nearest target. Once the blackboard had the right player assigned, I updated the AI Controller to use SetFocus() on that blackboard value. With this in place enemies now correctly identify and pursue the closest player in real time.
Zombats
Third-person Ability Shooter
Status | In development |
Authors | Wombat Studios, JRarrat, Josh The Dark, iWannaNuhh, aabunada, Flynn Studios |
Genre | Action |
Tags | 3D, Third-Person Shooter, Zombies |
More posts
- Guns and Ballistics - Ben Bissett17 hours ago
- Proper Ragdolling - Ali Abunada18 hours ago
- The Journey to Multiplayer, Part 2 - Joshua Newton1 day ago
- Pause Menu Doubling1 day ago
- Camera Collision against Walls7 days ago
- Putting the DUH in HUD7 days ago
- Input, Sounds, Guns and Collision - Ben Bissett7 days ago
- AI Collision and Decorator behavior problems7 days ago
- The Journey to Multiplayer - Joshua Newton8 days ago
Leave a comment
Log in with itch.io to leave a comment.