Hey,
I have a unit on a mission, and I want it to detect when a different unit (building/unit) is blocking it's path (only when completely blocked. having to walk around is ok) and destroy it so it can continue on it's mission.
the best way I thought of doing that, it by detecting when it's standing on the same point for a while when it should have been moving, and then just having it destroy the thing that is closest to directly in front of it.
is there a better way to detect what is blocking a unit's pathing in it's attempt to get to a specific item/location/unit?
I have a unit on a mission, and I want it to detect when a different unit (building/unit) is blocking it's path (only when completely blocked. having to walk around is ok) and destroy it so it can continue on it's mission.
the best way I thought of doing that, it by detecting when it's standing on the same point for a while when it should have been moving, and then just having it destroy the thing that is closest to directly in front of it.
is there a better way to detect what is blocking a unit's pathing in it's attempt to get to a specific item/location/unit?