Enemies moving to the Castle
Author: Austin Anderson
Date: 10/20/23
Problems:
I again had multiple problems with the AI this week. My first issue was that the enemies would not move towards the castle. I implemented the functionality for it but the enemies would not move according to this functionality. I then realized that the castle when placed, would block the navmesh before it got to the castle as you can see in the screenshot (the white block on the left is a temporary castle). I searched for a solution to this problem but could not find one. There is a navigation button that says something along the lines of "draw navmesh under this object" Perfect, exactly what I need right? Wrong. This button did absolutely nothing. I do not know what this button is for.
My next problem then arose, once I got the navmesh drawing correctly (more on that later), the enemies would only move towards the castle in my test level, not the actual playable level. I finally figured out that the enemies move toward the pivot point, since the castle was so large, the enemies' navmesh could not reach up to the pivot point.
Solutions:
I figured out that you can change the collisions so that the navmesh gets drawn under the object but now the enemies and player can walk through the castle. I posted a screenshot of the previous collisions that blocked the navmesh and the current collision that allows enemies to move toward and do damage to the castle, but they have to walk into it to do so. This is not a permanent solution, just a temporary one until I can find the correct solution. If anybody has information on how I can fix this problem please contact me.
The last problem, I currently have an even worse solution for. The problem is that the pivot point is too high. Now, I know that you can export the model, import it into blender, change the pivot point, then reimport it into unreal, but I don't think that solution makes sense with the placeholder castle. If anyone knows how I can make the AI move to the closest point on an object rather than the pivot point, I am open to suggestions. Thank you for reading and helping.
Get Cyber Siege
Cyber Siege
Third-to-First person Castle Defense game
Status | In development |
Author | TheCodeCollective |
Tags | 3D, First-Person, Futuristic, Robots, Singleplayer, Third-Person Shooter, Tower Defense, Unreal Engine |
More posts
- Visual Impact: Enhancing Player FeedbackFeb 03, 2024
- Revamping Reticles: Adding Specific DynamicsFeb 02, 2024
- Spider Enemy Dying in the AirFeb 01, 2024
- Small Changes: Beginning vs End of developmentJan 27, 2024
- Airstrike TimerJan 25, 2024
- Overcoming Code Mazes: Transitioning to Radial Progress Bars in Unreal EngineJan 20, 2024
- Airstrike Power-UpJan 18, 2024
- Resuming the Journey: Maintenance & PlanningJan 13, 2024
- Drone Enemy Particle Effect BugJan 11, 2024
Leave a comment
Log in with itch.io to leave a comment.