is there a way of using playercontrol's posses on actors. I want posses different actors with the same playercontroller during runtime in C++
Is there a way of using playercontrol's posses on actors. I want posses different actors with the same playercontroller during runtime but it only works for pawns. I have some functionalities implemented on my playercontroller class which I want any actor occupied or possessed by the PC to inherit. but implementing this in C++ has proved too difficult for me, I urgently need help.
asked Jun 03 '17 at 10:44 PM in C++ Programming
If you're trying to possess actors, you've set your game up incorrectly. Remake the actor you want to possess as a pawn instead. You could also make a pawn version of the actor and replace the actor with it, however this seems a little unnecessary.
In any case, Unreal has the structure laid out for you, and you should follow it (To avoid headaches). There is probably some technical way to force this to work, but theres a reason why you're only allowed to possess Pawns or Characters - they are specifically set up to be possessed by a controller.
Hope this helps!
Follow this question
Once you sign in you will be able to subscribe for any updates here