Some fun stuff I'm working on: utilizing my AI to make suggested moves for players!
In the GIF below I've set it up so that when you click RMB the suggested path and target it shown. I click twice and in both cases the target with the lowest HP is chosen (as this is how the AI normally decides for BP_Ability_MoveAttack). The player unit in this case has a range of 3 and tries to find the furthest distance away from the target where it can still attack it (since it has been set up to prefer long range in this case).
Since there are multiple options that fulfill these criteria you can see that a different path is shown for each click. I will probably change this to be deterministic in the future. This should work equally well for more complex abilities, such as those using the cover system, but I'm testing it out for this ability first:
In the GIF below I've set it up so that when you click RMB the suggested path and target it shown. I click twice and in both cases the target with the lowest HP is chosen (as this is how the AI normally decides for BP_Ability_MoveAttack). The player unit in this case has a range of 3 and tries to find the furthest distance away from the target where it can still attack it (since it has been set up to prefer long range in this case).
Since there are multiple options that fulfill these criteria you can see that a different path is shown for each click. I will probably change this to be deterministic in the future. This should work equally well for more complex abilities, such as those using the cover system, but I'm testing it out for this ability first:

Comment