Turning the Enemy Around (Literally)


There came a bug that caused the enemy AI to move closer to the player, which is what was desired, but not rotate towards the direction of movement. Instead, the enemy would move closer to the player but keep facing the same direction it spawned in facing.


Since both of our player and enemy AI classes derived from the same parent class, any changes made to that parent class was done on both. Not only that, but that parent class had a custom grandparent class as well that was not initially part of Unreal Editor. Finding that grandparent class as well as the lines that disabled the player to always face in the camera's direction allowed me to reenable that function in the enemy AI child class and fix the bug. After resolving some unexpected issues in Perforce, I was able to test my fix and confirm that the bug was corrected.

Get Ascension Zero

Leave a comment

Log in with itch.io to leave a comment.