I am having difficult time with thinking of a solution to making AI destroy barriers that are blocking way to player.
My idea is to have obstacles that does not block navigation for AI, and add trigger voluems for those objects. When enemy is chasing player (target is != null) then store this target in different variable and attack the obstacle. When obstacle is destroyed set back player as target.
Idea is simple and before starting to implement I was wandering if there are better techniques to do this. Also I do not like this part with trigger volume - but I couldn’t think of something different.