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:
-
Open RTS_Interface
-
Created a new function named UnitMoveCommand
-
Created an input named Location
-
Set the input type to vector
-
Added another function named GrabSelectedUnits
-
Created an output named Units
-
Set input type to Actors, Array
-
Compile and close RTS_Interface
-
Open RTS_MarqueeHUD
-
Expanded the Interfaces section and double clicked Grab Selected Units
-
Created the following blueprint:
-
(BLUEPRINT 1)
-
Compile, close RTS_MarqueeHUD
-
Opened my Parent_Unit_Class
-
Created the following blueprint:
-
(Blueprint 2)
-
Compile
-
Opened my RTS_Playercontroller
-
Created the following blueprint:
-
(Blueprint 3)
Units refuse to move.
Any help here will be greatly appreciated.
Cheers.