Hello there,
First of all let me tell you what I want to accomplish:
I´m trying to develop a behavior for an rts-style game, where a unit attacks all enemy units in a path till it reaches the “headquarter” of the enemies and attacks this one.
For now I want to implement an attack range for the unit. This means, is the next enemy at range, the unit should stop moving and attack the enemy instead.
Edit: Thats what I have so far, detailed graphs shouldnt be necessary for the question tho, I guess.
I found the Property “Acceptable Radius” for the “MoveTo” node, which basically tells the node when its ok to stop before the final destination is reached. As far as I experienced, it already consideres the bounds of the enemy. Thats the reason I would like to use it.
The problem is, I haven´t found a way to change the “Acceptable Radius” dynamically, so different units could use the same BT, just by changing a variable in the BlueprintActor of the unit which then changes the “Acceptable Radius”.
So my question is: Is there a way to change the “Acceptable Radius” dynamically depending on the controlled Actor?