My RTS units refuse to move to a location on right click

I’ve been following a UE5 tutorial on making an RTS game.
Using blueprints (no C++ code).
Despite following the tutorial step by step, my units will not move on right click.

The first time I tried this, it worked perfectly fine with no issues. I then made a new project and started the tutorial series again, with the same UE5 version, and I cannot get the units to move.

Video tutorial here: https://youtu.be/CzYm_v0OtuY?si=ksLFQLm8JkhZIirV

Prerequisites:
UE5 version 5.5.3
TopDownMap
Created Camera_Pawn - Blueprint class
Created Parent_Unit_Class - Blueprint class
Created RTS_Interface - Blueprint interface
Created RTS_Marquee_HUD - Blueprint class
Created RTS_PlayerController - Blueprint class
Created Selected_Decal - Material
Created Unit_Style_1 - is a child of Parent_Unit_Class - Blueprint class
Created Unit_Style_2 - is a child of Parent_Unit_Class - Blueprint class

Camera works fine.
Marquee selection works fine.

Here are the steps I had taken for movement, as per the tutorial:

  1. Open RTS_Interface

  2. Created a new function named UnitMoveCommand

  3. Created an input named Location

  4. Set the input type to vector

  5. Added another function named GrabSelectedUnits

  6. Created an output named Units

  7. Set input type to Actors, Array

  8. Compile and close RTS_Interface

  9. Open RTS_MarqueeHUD

  10. Expanded the Interfaces section and double clicked Grab Selected Units

  11. Created the following blueprint:

  12. (BLUEPRINT 1)

  13. Compile, close RTS_MarqueeHUD

  14. Opened my Parent_Unit_Class

  15. Created the following blueprint:

  16. (Blueprint 2)

  17. Compile

  18. Opened my RTS_Playercontroller

  19. Created the following blueprint:

  20. (Blueprint 3)

Units refuse to move.
Any help here will be greatly appreciated.

Cheers.

Hey

Did you set HUD in your player controller? Does array return anything on step 20?
And, I see that you didn’t connect exec line in For Loop on step 20.

1 Like

Well, now I feel stupid. My brain refused to see the missing connection you mentioned. I fixed that and now it works.

Thanks!!