Hi i want to change the controlls of default pawn from third person to RTS controlls

Hi I am developing a Hybrid TPS to RTS game
i have Successfully shifted my camera from third person to top down I have created control for Top down view That is by left clicking on character it gets selected and then I click on any location it moves there. it is successful when I drag and drop a character into the level but when I try to move default pawn that appears on game it does not move

please help needed asap

Hi Night Watcher

i AM SURE it is the right pawn because on click i print a message which appers when i click on the pawn but does not move but the other character does move

Maybe the default pawn is not the right pawn, did you make sure that you have selected the right pawn in the game mode?

Strange, can you provide screenshots of your code?
Also how are you dragging other characters to the scene? Before the game starts on during run-time?
Maybe you can’t move the character because it’s the main character and you are controlling it

i am draging the other character before the game starts

level blueprint for camera switch

Portion of camera rts where controls for right and left click are bieng set

Portion character blueprint where RTS controlls are handled

RTSCharacterControllerBP iam only using controller class i am not using AI for controlls

112409-capture4.png

below is RTS character movement Interface

I am totally relaying on you please help me

Portion of camera rts where controls for right and left click are bieng set

Portion character blueprint where RTS controlls are handled

RTSCharacterControllerBP iam only using controller class i am not using AI for controlls

112409-capture4.png

below is RTS character movement Interface

I am totally relaying on you please help me

This is too many stuff to try to keep up with, if it’s ok with you can you send me a copy of your project, so I can try it myself? In the editor go to file>package>ZipUp project. it should give you a smaller size project

Ok I see someting in the image under the “Portion of camera rts where controls for right and left click are bieng set” description.

After casting to character, you cannot use the cast output in another event. Think of it this way, the return value of your cast node is cleared once the code of that event is executed. Therefor when you try to access that value from your right click event, the value has been probably cleared. Instead, promote your casted value to a variable so it gets saved, and access that value in the right click event.

If your default pawn does not move, make sure that this cast value is successful, and that you have this pawn selected