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"

Office Holiday

Epic Games' offices will be on holiday from June 22nd to July 7th. During this period support will be limited. Our offices will reopen on Monday, July 8th. 

Character knockback on projectile hit.

Hey guys.

I want to have a projectile which adds a knockback on the Character that they hit.I tried "Launch Character" and "Add Impulse" directly in the Character Blueprint, only to notice that they stick to the ground like glue. Only with "Launch Character" the Character gets slightly pushed back a fixed amount and only when I add a insane "Launch Velocity", but instead when I change the Z Value, the Character gets knocked into the air like it's nothing.

After the knockback function in the Character Blueprint didn't work, I thought I could just add a "Radial Force" in the projectile, which also did not work. I tried playing with the Masses of the Bodies, which also didn't help.

What am I doing wrong? Help me.

Hoping for answers, Tenyoru

Product Version: Not Selected
Tags:
more ▼

asked Apr 08 '18 at 01:37 PM in Blueprint Scripting

avatar image

Tenyoru
13 1 2 5

avatar image ThompsonN13 Apr 08 '18 at 04:48 PM

did you have velocity change ticked on any of the nodes you tried? i used add impulse in a knockback that i had which ill show below. in my case though i limited how much force could be applied to the character and had the direction of the knockback dependent on the angle of the collision.

alt text

capture.png (155.9 kB)
(comments are locked)
10|2000 characters needed characters left
Viewable by all users

1 answer: sort voted first

Radial Force and add impulse work only when a character is in ragdoll state(simulate physics). Also, launch character will just make your character move without hit motion. That would look unnatural. I think you should use hit animations with root motion. So when the character is hit by a projectile, it plays root motion so that move with hit animation.

more ▼

answered Apr 08 '18 at 02:45 PM

avatar image

AirMaxWright
21 1 1

avatar image Tenyoru Apr 09 '18 at 04:17 AM

Ah thank you, I didn't know that. I will try it.

(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