Initial Setup

This page is dedicated to creating your new AI system using the VisAI Foundation.

Click here to watch the setup on YouTube

Step 1 - Move Template Files

  1. Move or rename the Template folder (located in the VisAI folderin the content browser)
  2. Rename all the files inside the Base Folder
  3. If you want to create multiple systems, reimport the plugin and you'll find another blank template folder.

Step 2 - Create Child Class files

  1. Create a new folder in your AIFolder.

Character Blueprint:

  1. Create a child of the character class in your base folder, move it to your new folder.
  2. Under class defaults, set the "AIController Class" to the new AIController

AI Controller

  1. Copy the child of the controller class from your base files into that new folder.
  2. In the "My Blueprint" tab under variables, look for the folder "Setup"
  3. Make sure to set these to the correct settings. Hover over them if you need help understanding what they do.

Behaviour Tree

  1. Copy the behaviour tree from the Parent\Base folder
  2. Change out the variables in the blackboard to match your system.
  3. Update the variables in the blackboard decorators or tasks.
  4. This is where you'll add actions for your AI to execute.

Step 3 - Add Behaviours, Goals, Plans

  1. Add behaviours to YourNameAI_Behaviours.
  2. Add goals to YourNameAI_Goals.
  3. Add plans to YourNameAI_Plans.

Step 4 - Get to know the Parent Controller

This step will show you how to use the VisAIcontroller to it's fullest potential. There are some really helpful functions in there and I will be expanding them as I work with it myself.
There is an Enemy system, Memory system, Perception system, and Path finding system included so far.

Step 5 - Create Scoring Logic

As this takes a bit more space to explain, a page is dedicated to it. Click on the link above to learn how to create scoring logic.
Creating the scoring logic will give your AI the ability to decide what to do.

Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License