With this new feature AI can alert each other when the begin fleeing from something and the other AI can flee as well.

In the BP_SmartAIComponent you will need to create the new variables listed below.

Variable Name — Flee Alert Actors

Variable Type — Actor Array

Tool Tip — “These actor will be alerted when the AI begins flee behavior”

Category — Flee Settings


Variable Name — Flee Alert Tags

Variable Type — Name Array

Tool Tip — “Actors with this tag will be alerted when the AI begins flee if in Flee Alert Distance”

Category — Flee Settings


Variable Name — Flee Alert Distance

Variable Type — Float

Tool Tip — “Distance in CM that AI will be alerted when this AI begins flee”

Category — Flee Settings


Variable Name — Flee Alert

Variable Type — Bool

Tool Tip — “If true when this AI begin flee behavior it will alert the Flee Alert Actors and or any actors with a tag in the Flee Alert Tags arrays within the Flee Alert Distance”

Category — Flee Settings


Variable Name — Can Be Flee Alerted

Variable Type — Bool

Tool Tip – “If true other AI can Flee Alert this AI”

Category — Flee Settings


Next create a new function called Check Flee Alert and add a input called Actor with variable type Actor. Then copy the images below.

Next add the highlighted node shown in the image below, location at the top of the screenshot.