Was going to do a video but it’s 2:30AM so I’m going to knock out in a second, hopefully these screenshots help give you some direction though!
Make an Enumeration, I called EBotState
Open EBotState, click *New *to add new entries Patrol, Spotted, Detected
On your AI character add an enum variable BotState and point the Variable Type to **EBotState **you made earlier.
Then switch over to your BlackBoard create a new enum variable, I called it BotState too. Point the Enum Type to **EBotState **you made earlier
The top left is how to set the BotState on the AI character, and below that is how to use a switch if you want to do some script stuff based on what the current value of the **BotState **variable is.
To the right is how to set the BlackBoard **BotState **variable, which is what you’ll use on the Decorators to check which sequence to go down. Basically the *Key Name *should equal the name of the Blackboard key we want to change, which is BotState
And this is how you check the BlackBoard **BotState **on the Decorator