Ai and the collision of destroyed actors

Hello folks! I have been having an issue with my AI (enemies and others) where they can’t move through a place where an actor existed before but has been destroyed.

For example, I have breakables in all of my levels like jars and barrels. After i break them, and they have been literally destroyed in the blueprint, Ai still acts like it is there. They either have to go around it or they can’t pass through it. Is there a reason why collision would still exist on an actor that has been destroyed? and suggestions or thoughts appreciated!

Hola! :slight_smile:

I don’t know for sure, but I think the

Console command RebuildNavigation

might help.

Haha i was trying to give you a break :rofl: i did that command to see if it would help. It helped me understand what the problem is. When the navigation is built, there are blank spots when there should be green where ever i have placed an obstacle. Im assuming that once the game starts, it does not rebuild navigation when an object is destroyed. Im betting that i can tinker with navigation settings to fix it. Thank you for the input!

1 Like

I think I found a fix to this. Build geometry and then restart the engine. I restart because build geometry seems to delete all of my actor BPs from the scene. Restarting the engine puts them back in my project with the navigation underneath all of them (instead of the nav being blocked) Hope this helps someone!

1 Like