Can anyone help me how can i do: 1 AI(minion) will follow second AI(boss)? I am not that good in UE4 then if anyone can give me pictures it will be cool… I need class/controller because minions(50x Entities must follow boss) and 1 Boss. I dont understand how can i make controller of the boss in controller of minions(i mean how can i make a goal like “Boss” for minions)
If anyone can help me it will be rly cool, thank u for time.
You dont understand my question… I know i must use “behavior trees”, but i ask about this: "And then update location X with the bosses location. " how can i get his location in AI(minions) controller. This is my question.
As explained in the documentation that I linked regarding the Behavior trees, you need to use a blackboard asset that holds a variable “X” and then you refer to that var in the “move to” task. The value can be set from anywhere as shown in the 3rd screenshot.
Try giving your AI a Character Movement component. That should make it work with the pre made “Move To” Task. And make sure you have a Nav Mesh volume in your level. Hit P so make it visible. Then, ground should be covered by a green surface. Thats all I can see so far. The rest looks like is should work.
or simple blueprint action (for me its easier to make it this way), if you have a minion (hope they are all the same ) go into his bp and use simple move to actor… as actor you have to reference to your boss …i would do it this way:
in your minion bp you define the boss ,which u want to follow and then tick it with a delay and a simple move to the defined boss. make sure u set the navmesh right (Press P , green ground is legit.) and you have the right ai settings in default.
a more tricky thing , if you have the same “minibosses” in a map u could assign bossID’s , just make sure u make this integer open to everyone (Eye icon beside the variable ) so you can assign it right in the editor.