AI only moves when already placed in game, not moving when spawned

So I am able to make the enemy move with the behavior tree with no issues. The behavior tree will not find the move to location “GuardTarget1” wihen the enemy is spawned. I have spent 2 days on this and have found a solution to move the AI after spawning with the AI Move To, but not able to find a way for it to work with the behavior tree. Any ideas?

Did you set this?

Yes I did have that set. The problem seems to be related to the actor in the scene that I picked for the enemy to walk to. When the enemy is placed in the scene the actor location “GuardTarget1” is still there, but when I spawn the enemy the location is empty. I am not clear how to keep the location picked with spawned.

Ah, you have to set it with a ‘getactorofclass’ on begin play :slight_smile:

That was exactly what I needed. Thank you for taking the time to answer. Happy Holidays!

1 Like