Here’s my code:
I’ve made sure to add a Nav mesh bounds.
The code is intended to move the move this an enemy (where this screenshot is taken) towards the player.
Here’s my code:
I’ve made sure to add a Nav mesh bounds.
The code is intended to move the move this an enemy (where this screenshot is taken) towards the player.
firstly dont put it on tick, it will constantly try to find a new path, try begin play for testing
make sure you are possessed by an AIController
make sure the path is valid (put a print string on the OnFail event)
make sure your collision doesnt block its own path
validate your PlayerCharacter, it should mostly always be valid but its good practice and may fail on beginplay if the pawn is spawned before the player