Download

How to check if actor cannot move to Target point?

I have dynamically spawned actors (in RTS mode) that move to 5 different waypoints on the map. They also generate the navmesh thing dynamically because you’re going to be building stuff around these actors. However, I would like to know how check if those actors cannot reach a target point, so that I could deny the player’s ability to build on that certain spot.

So basically, if you want to build something that blocks the path of the actors to the target point, then give a prompt error like “You cannot block the path.” eventually, not letting the user/player build there.

Thanks.

I guess you would have to put an imaginary footprint of what will be there with its collision on and try a navmesh run there. If it fails, have it report back that it can’t reach the destination and flag the item placer to No. I am not sure how you would do a navmesh run without the actor actually going there.

I’ve never tried these nodes but i think these are the nodes you are looking for.

&stc=1

Yes, it’s those 2, thanks, I got it working now :).

Can you share how you got it working? I’m trying to do something similar but when I check IsPartial its always returning true even though the path is blocked.

Can you share how you got it working? What i’m doing is spawning the object and then checking the path but IsPartial is always returning true even if the path isn’t being blocked

Weird, I tired the FindPathToLocationSynchronously where the location is in a NavArea_Water (NPCs are excluded from this area.). What I want is the isPartial to be true but it’s always false.
Could you share how you got it working? I am still not sure what the Pathfinding Context means.

Thank you very much.