- Create a “SetActorLocation” and check on “Teleport” within the node itself.
- Connect the “Then 2” of the second Sequence node to the flow input of the “SetActorLocation” node.
- Create “Array Get” node.
- Bring in the “Array Destinations” vector array, and select “Get”.
- Connect Array Destinations node into the squared input of the Array Get node.
- Bring in a Current Destinations Variable node and plug it into the green input of the Array Get node.
- Connect the yellow output of the Array Get node to the yellow input of the SetActorLocation node.
- Create an “Integer > Integer” node.
- Create an “Integer < Integer” node.
- Connect the red output of the “Integer < Integer” node to the red Condition input of the 3rd Branch node.
- Connect the red output of the “Integer > Integer” node to the red Condition input of the 4th Branch node.
- Bring in a Current Destination Variable and select Get.
- Connect the Current Destination node into the top green input of the “Integer < Integer” node.
- Bring in another Current Destination Variable and select Get.
- Connect the Current Destination node into the top green input of the “Integer > Integer” node.
- Create an “Array Length” node.
- Connect the green output of the Array Length node into the bottom green input of the “Integer > Integer” node.
- Bring in the “Array Destinations” vector array, and select “Get”.
- Connect the Array Destinations node into the squared input of the Array Length node.
- Create two “Integer + Integer” nodes.
- On the bottom value of one of the Integer + Integer nodes, set the value to “-1”.
- Bring in two “Current Destinations” and select “Get” for both of them.
- Plug one of the Current Destinations into the top green input of the Integer + Integer node, and do the same for the other.