So i’m following a course and i need to do an Unreal Engine 5 project with C++. This project is about making an rpg game where the enemy attacks the main character with different weapons and attacks. Currently i’m at the part where the enemy should first be patrolling around the map and if he see’s the main character then chase it then attack but not damage it yet. If the main character get’s too far away from the enemy then the enemy should stop chasing and get back to patrolling. Right now i’ve done refactoring to my code and since then the enemy doesn’t chase the main character(altough it sees it) anymore but if i attack the enemy with the main character than the enemy will start chasing the main character and attack it but instead of just executing 1 attack animations from the 3 that i have imported into my Unreal Engine project it executes all 3 of them and then if i run far away from the enemy then it goes back to patrolling but instead of walking it just slides to the designated patrol target. Before refactoring everything was working fine. The project is 37.3 GB so i can’t share the whole ptoject but i will share the sln file and make a video about the problem. I can also make a video about the whole Unreal Engine interface.
This is the sln file:
https://www.dropbox.com/scl/fi/b5ms6o90xazkxzgt6qq6a/CliffTownTutorial.sln?rlkey=klvfgmz4s1s009n7t0g4dd2e1&st=d179reb6&dl=0
This is the video about the problem:
https://www.dropbox.com/scl/fi/89r3cqixogy7zgeabvrlj/sc187.mp4?rlkey=hitrbqt1lbjsfxkpvku1qcc84&st=3zboovfw&dl=0
I’ve tried debugging myself. I’ve ran through the code multiple times to check if i can find any irregularities but i couldn’t find any and also Visual Studio doesn’t show any errors. Also i’ve tried asking for help on discord but so far i’ve got no help from there.