"Check the last index against the Actor"

Earlier, i’ve started a question, and got an anwser. Then i’ve forgot about it, for a while, and now trying to figure out, how do i “Check the last index against the Actor”, as the anwer says. Can someone explain a bit, how to do this properly?

Here the question, with answer: Check if actor is reachable - Programming & Scripting - Epic Developer Community Forums

Hi LikotUbenteb

The array mentioned has coordinates, many of them, and, there is a last coordinate where the path ends, with that said, you get this last coordinate where the patch ended and compare it with the player’s current location.

For instance:
The player location is {6, 11} - from GetActorLocation node
The array is: {{2, 3}, {5, 9}, {6, 11}}
Then you compare the actor location “against the last array index”

74655-lastindex.png

Thanks for explaining, but i’m still trying to understand how to apply this, when i need to find mesh actor, which collides. I need to use something with ranges?