5. Character Blueprint

Setup the AI's Character Blueprint.

Windows
MacOS
Linux
On this page

As we have created a project with a Character already in it, we have access to a humanoid Skeletal Mesh and its Animation Blueprint. We will use these in the tutorial, but feel free to use your own if you have them available.

This Character will become our new AI Character. The reason we use a Character, over say a Pawn, is to gain access to the Character Movement Component's functionality.

Steps

  1. Double-click the AI_Character Blueprint in the Content Browser to open it for editing.

  2. Select the Mesh component in the Components panel.

    meshComp.png

  3. In the Details panel, find the Mesh category and assign the SK_Mannequin (or your own) Skeletal Mesh.

    assignSkelMesh.png

  4. Move the Mesh Component to center it up inside in the capsule.

  5. Rotate the Mesh Component so it faces the direction the blue Arrow Component is pointing.

  6. In the Details panel, find the Animation category and assign the ThirdPerson_AnimBP to the Animation Blueprint Generated Class property.

    assignAnimBP.png

  7. Select the CapsuleComponent from the Components panel, then in the Details panel, adjust the Capsule Half Height and Capsule Radius so they encompass the Skeletal Mesh.

    shapeCat.png

  8. Select the Character Movement Component.

    charmve.png

  9. In the Details panel, in the Movement Capabilities category, adjust the Nav Agent Radius and Nav Agent Height values.

    agentProps.png

    Set the Nav Agent Radius to at least the Capsule Radius, and the Nav Agent Height to at least twice the Capsule Half Height.

  10. With the Character Movement Component still selected, change the Max Walk Speed property, in the Character Movement: Walking category to 400.

    maxWalk.png

  11. Click the Class Defaults defaultsButton.png button and assign the new AI Controller (Runner_AI_CON) to the AIController Class property in the Pawn category.

    AI_con.png

  12. Compile compile_button.png and Save. save_button.png

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