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"

I want to posses a character using a button press

I'm currently attempting to create a game in which the player character can switch (posses) into another character within their view, triggered by a button press.

To simplify: Mouse over character--->press q--->posses character

I want it to be set so any character can be possessed (even different instances of the same character blueprint) However, no tutorial has explained how to control any given character. Any suggestions?

Product Version: UE 4.10
Tags:
more ▼

asked Mar 27 '16 at 06:36 PM in Blueprint Scripting

avatar image

ZeroNRG
3 2 2

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

1 answer: sort voted first

This is my solution

Watch the screen shots if you get lost

1 make a new third person project

2 make a crosshair and move the third person camera by 70 in y

3 Open your third person bp

4 make an event (in your case the event wen Q is pressed) Then make an line trace by Chanel cast to third person character

5 If it is the Third Person character Call the node stop movement immediately

6 then call the node Posses

alt text

![alt text

Some Extra Stuff That i Made

alt text

alt text

posses_1.png (194.9 kB)
posses_2.png (93.6 kB)
posses _3.png (227.1 kB)
posses_4.png (119.2 kB)
posses_2.png (93.6 kB)
more ▼

answered Mar 28 '16 at 04:23 AM

avatar image

Lord_Syler
42 3 3 6

avatar image Lord_Syler Mar 28 '16 at 04:26 AM

Ps: Should Work With Other Characters as well

avatar image ZeroNRG Mar 28 '16 at 09:58 PM

Thanks Syler, this was a surprisingly helpful response. I'll be sure to try that out.

(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