Is it possible to use both PlayerController and AIController with the same Pawn?
In my top-down game (made from top-down C++ template) with pawn's movement controlled by mouse clicking, I want to use
I tried using
asked Feb 14 '19 at 12:29 AM in Using UE4
i dont know about C++ but in blueprint its not all that hard to do something similar. below is a little test script i made which if im getting you right is what your trying to accomplish. this is done in the player controller and the idea is to move a character via mouse clicks without possessing it. basically i get the hit result under cursor and if its a character i set the variable character to control then i set the view target which makes player controller use the characters camera. if i click with the mouse and its not a character then it moves the currently selected character to where i clicked.
obviously this is incomplete lacking is valid checks and such but its a proof of concept. im sure you could use something similar in C++.
answered Feb 14 '19 at 12:53 AM
Follow this question
Once you sign in you will be able to subscribe for any updates here