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"

Actor Knockback

Hello I'm making a small game where you have two fighters in an area so player one and two which both use the same keyboard smash bros style. The game is from a bird's eye view and is in a stage where no maps have yet been created etc. alt text

The way to kill the enemy player is by pushing them into either an obstacle such as a spike (not yet implemented) or something like a projectile which flies across the arena. To do this I need to be able to apply knockback. I would like to know how to make it so that when 1 player is hit by another player ie bumped into there is a small knockback effect. Also, I want it so that when the two players bump into each other as in they both run at each other and collide that they both receive knockback in the opposite direction. eg Hit from behind knockback forward, two plays hit head on both knockback backward etc(picture Beyblade). I'm still new to unreal and I can make it so that when they collide i can make them knockback in a certain direction by inputting xy or z values but I don't know how to do the hit from behind go forwardalt text.

This is how movement is set up. Even though they are both physics actors and when they collide they push each other anyway(but not necessarily knockback) for a majority of the game players will be moving and if the two collide they simply stop each other with no knockback, if anyone knows how to do this and can maybe show me how to do it that would be awesome

Product Version: UE 4.19
Tags:
birbseyeview.gif (583.1 kB)
more ▼

asked Jul 11 '18 at 11:07 AM in Blueprint Scripting

avatar image

NachoSenpai
8 1 4 6

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

1 answer: sort voted first

Solved I have solved this by myself by using normal impulse and hit events

more ▼

answered Jul 11 '18 at 12:27 PM

avatar image

NachoSenpai
8 1 4 6

(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