Help with Implementing Custom AI Behavior in Unreal Engine

Hi everyone…

I am working on a project where I’m trying to create custom AI behavior for NPCs in Unreal Engine, but I am running into some challenges. My goal is to have the AI dynamically change its behavior based on specific player actions, like switching between aggressive and defensive modes depending on the player’s proximity and health level.

I have been using Behavior Trees and Blackboard, but I’m not sure how to structure the transitions effectively. Should I use decorators for this, or is there a better way to handle state changes? Also, I’m curious if anyone has tips for optimizing performance when running multiple AI with complex behaviors in a single level.

I also check this: https://forums.unrealengine.com/t/community-tutorial-how-to-create-a-boss-fight-in-unreal-engine-5-behavior-trees-ai-beginner-tutorialmendix

But I have not found any solution. Could anyone guide me about this? Any advice, examples, or resources would be really appreciated!

Thanks in advance! :blush: