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 players in ue4 after a matinee?

I currently have a world set up where I can move around in third person and climb on things. I want to also add a way to grapple and swing off stuff but I have tried combining the two and they don't work together. I want to know after I trigger a matinee cinematic sequence, how to switch my 3rd person character to another one which would be for rope swinging/grappling. I currently have 2 projects: one is the climbing ability for the third person template character and the other is rope swinging for the third person character template also. How can I automatically switch between these two different characters during the matinee so the player won't notice a change and be able to rope swing?

Product Version: UE 4.18
more ▼

asked Feb 20 '18 at 12:59 AM in Using UE4

avatar image

Matthew Rumble
3 1 2 3

avatar image ThompsonN13 Feb 20 '18 at 01:36 AM

you should be able to accomplish all that with one character. but since you asked the way to switch from controlling one character to another is by using the posses node. this node needs a player controller reference. so basically youll just need to script a way to use the node ill post an example below.

in the script below when the player presses the Q key the player will start controlling the bp_enemy character. if they press Q again then they will begin controlling the thirdpersoncharacter2. i made this in the level blueprint so it was easy to get references cuz im feeling lazy but you could easily find other ways to get references or you could just spawn in new characters to control. alt text

capture.png (136.4 kB)
avatar image Matthew Rumble Feb 20 '18 at 04:20 AM

Does this also transfer the blueprints of the rope swing character? I migrated over the rope swing 3rd person character from another project but there are lots of blueprints involved for each: the rope swing project and the climb system. Are you able to help? How do I also migrate the blueprints/animations with it

avatar image ThompsonN13 Feb 20 '18 at 04:32 AM

migration is a whole other topic. what i provided is only the logic to switch between two characters.

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

0 answers: sort voted first
Be the first one to answer this question
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