I Need to Make the Up Arrow Key On the Keyboard Send My Pawn to Different Locations in My Scene

  1. Create a “SetActorLocation” and check on “Teleport” within the node itself.
  2. Connect the “Then 2” of the second Sequence node to the flow input of the “SetActorLocation” node.
  3. Create “Array Get” node.
  4. Bring in the “Array Destinations” vector array, and select “Get”.
  5. Connect Array Destinations node into the squared input of the Array Get node.
  6. Bring in a Current Destinations Variable node and plug it into the green input of the Array Get node.
  7. Connect the yellow output of the Array Get node to the yellow input of the SetActorLocation node.
  8. Create an “Integer > Integer” node.
  9. Create an “Integer < Integer” node.
  10. Connect the red output of the “Integer < Integer” node to the red Condition input of the 3rd Branch node.
  11. Connect the red output of the “Integer > Integer” node to the red Condition input of the 4th Branch node.
  12. Bring in a Current Destination Variable and select Get.
  13. Connect the Current Destination node into the top green input of the “Integer < Integer” node.
  14. Bring in another Current Destination Variable and select Get.
  15. Connect the Current Destination node into the top green input of the “Integer > Integer” node.
  16. Create an “Array Length” node.
  17. Connect the green output of the Array Length node into the bottom green input of the “Integer > Integer” node.
  18. Bring in the “Array Destinations” vector array, and select “Get”.
  19. Connect the Array Destinations node into the squared input of the Array Length node.
  20. Create two “Integer + Integer” nodes.
  21. On the bottom value of one of the Integer + Integer nodes, set the value to “-1”.
  22. Bring in two “Current Destinations” and select “Get” for both of them.
  23. Plug one of the Current Destinations into the top green input of the Integer + Integer node, and do the same for the other.