I’m a beginner at Unreal Engine currently working on creating a sort of RTS style of personal project using a character with no model as the camera to freely look around but need to be able to select and move other characters using mouse input and that camera. I’m setting up a system to find mouse location and transmit it on click within a range of the character as I’ve seen in a tutorial, but I can’t seem to get it to use the camera of the character that is used for navigating.
I’ve tried modifying this to use cast to but I haven’t gotten it to work so I’ve removed what I attempted to show just the part that is working. I need in that code to access the camera of the other character in order to direct movement. Any help with how to expose the camera component from one character to use on this one is much appreciated.
Edit: The point to click movement works the way I intend like this but for the character used as the main camera rather than individually controlled characters. I tried adding the cast to just before the simple move to location but that is where I was unable to get it to work as I thought it did.
In this instance I’ve moved this onto the blueprint of the character with the camera I need to use and was attempting to cast the movement to the other character.