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.
Last updated
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.
Last updated
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.
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.