To give some context, I have two AI enemies types: Weeping Angel (enemy that moves only if the player is not looking directly at it) and Parasite (wanders around, chases player if player is spotted). Both are a Character blueprint.
Weeping Angel works perfectly when spawned, but my Parasite enemy does not move upon being spawned. It will just play its idle animation without actually moving. When I trigger the chase movement for the Parasite, it will chase the player and work perfectly fine afterwards. When dragging and dropping the Parasite blueprint into the level, the Parasite works perfectly.
I Googled around before posting here and have verified and tried the following:
- There is a NavMeshBounds in my level. I deleted it and replaced it to see if that would do anything, but it unfortunately did not. Doing this got rid of the RecastNavMesh and replaced it with a new one that is currently in my level.
- Auto Possess AI is set to “Placed in World or Spawned”
- AI Controller Class is “AIController”
- Moving the spawn point of the enemy up to avoid getting stuck (I use a random enemy spawner)
My Parasite roaming code:
My Random Enemy Selection Code:
Preview of the Parasite not moving with NavMeshBounds preview:
Weeping Angel and Parasite are pretty much the same in terms of class settings and defaults
Any help is greatly appreciated with this, and let me know if I need to provide any more information!