func NPCPatrolMovement():
if HasRepublicShipEnteredPatrolPoint1 == false:
transform.origin = transform.origin.move_toward(PatrolPathPoint1.position, 3)
if HasRepublicShipEnteredPatrolPoint1 == true:
transform.origin = transform.origin.move_toward(PatrolPathPoint2.position, 3)
if HasRepublicShipEnteredPatrolPoint2 == true:
transform.origin = transform.origin.move_toward(PatrolPathPoint3.position, 3)
I whipped up what I thought was a basic waypoint system after doing some digging around and for some reason the ship just won't move past the second patrol point despite the boolean being true. The idea is straight forward, the ship goes towards the patrol point which is an area2D, the area2D sends a signal to the ship and updates the boolean so the ship knows to carry on to the next patrol point in the sequence.
The third patrol point however isn't updating correctly for whatever reason despite the booleans working fine and I did double check with print. I don't think there are any problems with my signal setup or my group setups that I've used to grab the patrol points.

Here's a visual aid of what's going on, the ship that is moving is the yellowish ship, the red path is current path, the green path is what I'm trying to achieve, would be great if I could get some help on this as I'm a bit baffled as to why the code is ending too soon.