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"

Physical Animation on same blueprint

Hi,

I am currently setting up a melee combat system and have look into physical animations. For my combat system I am using a set of traces attached to the sword, which allows me to get the hit results etc. All my characters are using the same blueprint, which is giving me a little bit of a headache;

When I try to apply my physical animation blend, it applies it to the character that is hitting, not being hit. How would I go about getting the skeletal mesh of the character getting hit, and applying that to the physical animation?

Thanks!

Product Version: UE 4.15
Tags:
more ▼

asked May 22 '17 at 12:29 PM in Blueprint Scripting

avatar image

ObamasPyjamas
27 4 10 10

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

3 answers: sort voted first

I think the piece you are missing is that the Damage event only fires on the instance that receives damage.

Even though they share the same BP, the event only fires on the character that is damaged.

So, for example, if you enable the Physical Animation Component in the Damge event, on the the damaged character will execute that.

Hope that helps

more ▼

answered May 22 '17 at 04:13 PM

avatar image

OptimisticMonkey
349 7 12 22

avatar image ObamasPyjamas May 22 '17 at 04:15 PM

Thanks for the help, I'll give it a shot tomorrow and let you know how it goes :)

avatar image ObamasPyjamas May 23 '17 at 12:33 AM

No luck unfortunately, still just applys it to itself.

avatar image ObamasPyjamas May 23 '17 at 01:12 AM

My bad, you were correct! I placed it after the "Apply Damage" as that is what I thought you meant, but I tried adding it to the Event AnyDamage (which is what I'm sure you meant) and it worked fine! Thanks a lot mate !:)

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

Each character has its own BP, its own mesh, its on Physical Animation Component..

In the weapon trace hit event you get the object that was struck.

Call the apply damage on the object that was hit.

Handle that damage accordingly.

more ▼

answered May 22 '17 at 02:47 PM

avatar image

OptimisticMonkey
349 7 12 22

avatar image ObamasPyjamas May 22 '17 at 02:51 PM

Thanks for the reply, but how would I apply the Physical Animation blend to the other character and not myself? I understand that you can get the actor that has been hit, but how do I get the skeletal mesh?

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

I don't understand what you are asking- Each character has its OWN BP, its own mesh, and its own Physical Animation Component..

The one that does damage tells the one that gets damaged to receive damage.

The one that is damaged has access to its own mesh and physical animation component.

more ▼

answered May 22 '17 at 02:56 PM

avatar image

OptimisticMonkey
349 7 12 22

avatar image ObamasPyjamas May 22 '17 at 03:03 PM

Alright alright, let me try to explain a little more clearly.

This is a multiplayer game, which uses the same blueprint (instanced) for each player. There is one character blueprint used - so therefore I cannot cast to another blueprint or whatever.

I am attempting to set the Physical Animation component of the character that I hit - which is the same character controller that I am using...

Here are a few images of my raycast things, excuse the noobiness, I am new :D

alt text

alt text

So essentially when I hit the bone of another player, it applies the Physical animation to me as we share the same blueprint.

I'm sure I'm just being a noob and there is a really obvious node or answer but thankyou for your patience :)

help1.jpg (173.2 kB)
help2.jpg (180.8 kB)
(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