6. Setup the AI Controller Blueprint

Step 6. Setup the AI Controller Blueprint

Windows
MacOS
Linux
On this page

Using the Top Down template gives us access to mouse controls to move our character around, but for the other character we are going to create, they will need their own controller. This AI Controller is going to set a few values on its Blackboard and is going to kick off the running of our Behavior Tree. For those familiar with Blueprints, here is what the final Event Graph will look like:

Below are the steps for creating the first part of the Event Graph. Step 7. AI Controller Blueprint: Initial Blackboard Values and Step 8. AI Controller Blueprint: Run the Behavior Tree also involve editing this graph.

Steps

  1. Double-click the AI Controller Blueprint in the Content Browser to begin editing it.

    followerAICONAsset.png

  2. Using the Right-click Context menu in the Graph Panel:

    1. Add an Event Begin Play node.

      EBPc.png

    2. Add an Use Blackboard node.

      useBBc.png

    EBPandUB.png

  3. On the Use Blackboard node, change the Blackboard Asset to the one you created in step 3.

    useBBset.png

  4. Connect the output execution pin on the Event Begin Play node, to the input execution pin on the Use Blackboard node.

    connectedBPtoUB.png

In the next step we'll continuing editing this graph and setup the initial Blackboard values for our AI Controller.

Select Skin
Light
Dark

Welcome to the new Unreal Engine 4 Documentation site!

We're working on lots of new features including a feedback system so you can tell us how we are doing. It's not quite ready for use in the wild yet, so head over to the Documentation Feedback forum to tell us about this page or call out any issues you are encountering in the meantime.

We'll be sure to let you know when the new system is up and running.

Post Feedback