Link to video of the problem with I have with the AI in my project. If you know what the problem is or know someone who can help me please let me know. Video Link: AI not working in Unreal - YouTube
If you know what the problem is
You will need to tell us that. Perhaps describe the issue and post script. The video is not helpful. What is supposed to happen?
The character is suppose to move but I’m not sure where the problem is. I can send the game file.
A screenshot of how you attempt to move it may be enough.
Well, can be few things.
Make sure you have setup the code to have the AI move to location or at random.
Don’t forget to add you Nav Mesh everywhere you want your AI to move.
- how are you calling it?
- does it fire?
- how is your nav-mesh looking?
- are there movement components on the pawns?
I’m calling it with the blueprint above it which determines if the pawn has a melee or ranged attack and since I am focus on melee there is no fire the pawn runs up to the target, hits them and runs back. The nav-mesh is fine because the arena is on a platform in an open field. The pawns have moving components because before I added the background mesh they were moving.
It’s your script, you know it best, step through it thoroughly, debug. Put print strings, watch values, place breakpoint, observe data flow, ensure the references are valid. At some point you’ll notice things are not what they seem.
It’s impossible to deduct anything from the incomplete tangled script above, there’s a ton things that could have gone wrong that we do not see.
Do consider explaining it to a rubber duck, it does help, it’s no joke.