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"

How do I switch between 2 characters, having one of them replace another?

I already have two characters created and blueprints of walking and jumping within them. What I need is to have characters change when I press a button and replace one another until I press the button again and reverse the change. As in: I switch from character A to character B and character B is replacing character A until change is undone.

I have checked many tutorials here and I have followed official unreal documentation as in Possessing pawns in the BP (https://docs.unrealengine.com/en-us/Gameplay/HowTo/PossessPawns/Blueprints) but it's made in level BP and leaves both characters present on the level when I switch. if i have multiple levels, it won't work I don't think.

I tried making the character get unpossess but it won't really work. Am I missing something? Sorry for a newbie question

Product Version: UE 4.21
more ▼

asked Feb 26 '19 at 02:27 PM in Blueprint Scripting

avatar image


(comments are locked)
10|2000 characters needed characters left
Viewable by all users

1 answer: sort voted first

You have to use the Pawn Possessing as it's described there, but (obviously) you'll have to write that to your GameMode (or wherever you prefer), not your level script. Level script was only used in the tutorial for demonstration purposes.

more ▼

answered Feb 26 '19 at 03:13 PM

avatar image

1.4k 5 5 7

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
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