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"

How to detect where's the hit coming?

Hello.. On a Third Person game, when the player takes one melee hit, he have one reaction. But if this hit come from the back, or the side of the player, the reaction is different.... How can I detect where is the hit coming?

Thank you.

Product Version: UE 4.9
Tags:
more ▼

asked Sep 28 '15 at 12:09 PM in Blueprint Scripting

avatar image

gustavim15
10 3 6 9

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

1 answer: sort voted first

"Event Hit" returns a "Hit Result" which is a struct of all kinds of useful information.

One of them is "Hit Location" the vector at which your actor was hit.

more ▼

answered Sep 28 '15 at 12:33 PM

avatar image

Erasio
5.9k 291 86 293

avatar image gustavim15 Sep 28 '15 at 08:20 PM

Thank you! It will help me a lot :D

(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