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"

Punch collision between two characters

I'm new to UE4 (1 week) and I'm trying to make punch collisions between two players. I first added the second player, then I used the collision spheres inside the hand to generate overlap events.

The overlap events work well, when I hit the other player the text is printed and the life is decreased to 0. But the character receiving the damage is the wrong one. I guess I have a problem with the cast of the other actor and the event is triggered inside the wrong actor. What do you think ?

Also when the physics get activated, the character animation doesn't stop and he just get kicked everywhere like crazy. Are there any DisableAnimation and StopMoving functions ?

alt text

Product Version: Not Selected
Tags:
blueprint.png (221.3 kB)
more ▼

asked May 06 '15 at 01:41 PM in Blueprint Scripting

avatar image

Leaf1
1 1 1 3

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

2 answers: sort voted first

I just figured out how to solve my destination character problem. I didn't connect the cast to the exec line.

But how do I disable animation and movements when my character dies ?

alt text

blueprint.png (294.5 kB)
more ▼

answered May 06 '15 at 03:28 PM

avatar image

Leaf1
1 1 1 3

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

Disable AND Deactivate movement, (optional; enable gravity and physics afterwards)

This was an answer on how to do when a character dies, you could also play a death animation after disabling and deactivating movement. Either using interface of using a simple animation node in the character BP

more ▼

answered Jan 07 '16 at 03:27 AM

avatar image

ImperiumPandemonium
152 12 12 17

(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