🧑‍🤝‍🧑
Advanced Companion AI: Documentation
  • General Information
  • Extended Product Description
  • Update Logs
  • What makes this product special?
  • Reviews
  • Useful Unreal documentation
  • đź“‹Documentation
    • Quick Setup
    • Settings Explained
    • How to implement Custom Commands
    • The Projection System
    • Included Follow Modes
    • The Area Detection System
    • Using the Command System
    • Built-in AI Perception System
    • The Neutral Area
    • What are Interactable Objects?
  • Weblinks
    • 📺Our YouTube Channel
  • 🤝Join our Discord Community
  • 📹Advanced Companion AI Playlist
  • ⬇️Download Gameplay Tags .ini
  • ⬇️Download playable demo
  • Privacy Disclaimer & Contact Information
Powered by GitBook
On this page
  • For Run - Follow Method
  • Follow Behind - Follow Method
  1. Documentation

Included Follow Modes

This page contains all the necessary information about the follow modes included in the Advanced Companion AI. In the following lines you will find a detailed explanation of each follow mode.

PreviousThe Projection SystemNextThe Area Detection System

Last updated 1 year ago


For Run - Follow Method

The “For Run” follow method provides an interesting behavior, where the AI is running in front of the player, instead of following behind. For this the AI uses Unreal Engines built-in prediction system, combined with the projection system which was explained before.

The For Run follow method simulates a more independent behavior of the AI, giving the player the feeling that the companion is acting on its own decisions and finding its own paths. This adds a lot of immersion to your games which is a factor that shouldn’t be underrated.

Follow Behind - Follow Method

Continuing with the simpler follow method, the “Follow Behind” method. To achieve this behavior, the AI controller, first gets the players location and then calculates an offset of 100 units behind the player.

After calculating the players location (with offset) the system checks if you set any offset (left / right / none) in the companion component settings. Based on the offset you chose; the system then adds this offset to the calculated player location and returns it as the follow location.

After the calculation of the follow location used in the “Follow Behind” follow method, the AI will use this location whenever it follows the player. To save performance, the calculations are only executed when the AI is currently following the player.


đź“‹
For Run - Follow Method (In-Game Screenshot)
Follow Behind - Follow Method (In-Game Screenshot)