Knockback when taking damage?

Hi, I’m trying to figure this out, I want to have the character recieve knockback or impulse after being hit. Is it possible to activate a movement modulator or the pinball bumper effect to the character once they take damage from the shot. Would i use onHit event or damaged or something completely different?

Use a gameplay ability. It’s the opposite of a Dash effect. See [UE5] Gameplay Ability System Example: Dashes & Knockbacks - YouTube for example.

I wish I could, this is a fortnite creative map though so I’m not sure I can include those plugins so I was trying to find out ways to do this with verse code.

sorry I missed the Fortnite tag! :frowning:

There’s no way to force move or rotate a character yet with verse. You can use a teleporter device to push somebody back a bit but it literally teleports them and doesn’t look like a knockback.

Right but there are knockbacks in the game like the pinball bumpers and such, but I’m trying to find out how to activate this effect when a player gets damaged and in the opposite direction from the source (the player shooting).

I get it, but that’s done with a predefined device that doesn’t have a “visibility” setting. The other problem is being able to move a device or teleport a device. As we can’t move a character yet with verse, you’ll likely have to wait for that particular effect

You can knockback players using the movement modulator device and triggering it remotely. This is how I knocked back players in my Survive The Wassermann game.

2 Likes

well… you learn something new everyday. Good one.

Amazing! I was able to get this to work (Activate on an event), and using the Apply Impulse / Forward Impulse values… However, Forward Impulse only takes a positive number (which isn’t knockback, it’s knockforward). Is there a way to give it a negative number? Perhaps my question is, how I can feed a custom value into this property? Thanks!

Teleport and rotate the device 180 degrees from the player :slight_smile:

1 Like

Another solution that may work for you would be to use the explosive device, turn off all effects and damage, and set the knock-back value > 0.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.