Checking Position

Hey guys,

Bit of an annoying problem I’m having, I am telling an actor to move to another actor using the Move to Actor node, the character does this with no problems but where I am having a problem is I want to check when the character is within a range of the Actor it’s moving to, now the problem comes in that i am doing this in a function that is called from another blueprint on a button press, meaning that there is only one exec of the function so I cant check the position of both Actors more than once and I cant use a Tick node inside of the function, i have tried using loops but without success. Below is a screenshot to give you an idea of what I’m trying to achieve.

Thanks guys!

Bump…

To be honest I don’t understand what you mean :stuck_out_tongue: can you elaborate?

Why would you need a tick event or loop etc. to do a distance check? Sounds you are going about it the wrong way.

If you need multiple execution pins you can use the Sequence node for example.

Is that what you meant?

Not quite, I need the locations to be checked until the locations become close enough to make the bool true. The problem is that the exec chain is only fires once so it only checks once, i need the exec to be fired until i tell it to stop, like when the positions are close enough together. I have tried Loopwhile but I just get a endless loop. let me know if you need anymore info.

For that you can use a timeline (Start/Loop/Stop) or a timer(Set/Loop/Clear) or a custom loop with a delay like this