Hi,
I’m new here, sorry for noob question. I have problem trying to create a certain behavior tree. The logic is as follow:
- Check until player is in range (500) → I use task in here, I know I can use perception, perhaps later
- If player in 500 range, get the player position, and move to that position.
- If the AI is in range of that position, OR in range to current player position, stop and do attack.
- wait for 3 second.
Step 1 and 4 is solved, but step 2 and 3 is a little bit tricky due to the OR clause. In step 1, I save the player actor as a value in billboard and a simple Move To task will do the trick. But if the player moves away, the enemy won’t stop following the player (which I don’t want to do since its destination is the last known location before it moves). But if I save the location in step 1, the AI will keep moving to that location even if the player moves closer.
So I thought I should create my own task where while moving, the player will check both last known location and player location. But I got stuck with Simple Move and Move does not allow check custom range (only 1 input for radius). Is there a way to inject self-made conditions to interrupt move to/simple move to?
Thank you in advance