x

Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

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.

Product Version: UE 4.15
Tags:
more ▼

asked Jun 03 '17 at 10:44 PM in C++ Programming

avatar image

Dubem
3 1 1

(comments are locked)
10|2000 characters needed characters left

1 answer: sort voted first

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!

more ▼

answered Jun 04 '17 at 01:31 AM

avatar image

Reuben Ward
343 8 4 16

avatar image Dubem Jun 05 '17 at 09:11 PM

Thanks man, why I choose to use actor was just because I am dealing with meshes that are not supposed to be movable. Thanks a lot for the advice.

(comments are locked)
10|2000 characters needed characters left
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question