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. 

How to push / add force to character through blueprints?

Hi, I found an old question on this topic but for C++ which suggested using "Add Velocity", but that's apparently not available in blueprints. I've tried Add Force to a character bone, but doesn't show any effects, it seems that's not for characters. What can I use then for a nice push or force effect? If there's a physics simulation way for this it would be nice to know about too.

Product Version: Not Selected
Tags:
more ▼

asked Apr 10 '14 at 07:52 PM in Blueprint Scripting

avatar image

Albert Espín
972 80 98 361

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

2 answers: sort voted first

Hey Albert Espín,

Here is two options that will apply force to a Character.

Either works, try testing them. When using Launch Character. I suggest apply override when applying force so it does not modify the characters properties. Review the node for more information.

alt text

Peace

addvelocity.jpg (123.7 kB)
more ▼

answered Apr 10 '14 at 09:19 PM

avatar image

PeterLNewton
2.1k 75 37 111

avatar image Albert Espín Apr 11 '14 at 06:25 PM

Thanks, "Launch Character" is giving better results.

avatar image iamgoret Apr 14 '14 at 10:00 PM

I think I may be after something similar, did this enable you to have a moving object push the player on contact?

For days I've been trying to get this to happen through physics, but it can't get it to work. In short I have blocks sliding down a slope and I want them to push the player in the direction they are travelling if the player get's hit by one.

avatar image Albert Espín Apr 15 '14 at 09:30 AM

You possibly can use Hit or Overlap stuff, in that last case make sure you character has "Generate Overlap events" so it can overlap with the block, you then use the event "Begin Overlap" in your character, cast the "Other" actor and if it's that block class, fire the "Launch Character" function.

avatar image iamgoret Apr 15 '14 at 11:25 AM

Used Event Hit and this seemed to work, getting the velocity right will be a trick. Initially it was pushing me in the opposite direction of where the actor is travelling, not too realistic. Will require some more tinkering to get it to working. In addition to this, the hit event only triggers half the time I run in to the actor, the other times the actor just passes through me. Weird.

avatar image PeterLNewton Apr 15 '14 at 06:26 PM

Depending on your situation. Here is another setup that adds to push to velocity of the pawn directly. I cut it away from another double jump setup.

alt text

jumphalf.jpg (94.3 kB)
avatar image Maelgrim Sep 01 '14 at 06:24 PM

if you launched someone in the air, for lets say a darth vader choke effect, how would you go about keeping them there so gravity doesnt just make them fall right back down again, cheers!

avatar image KITATUS Feb 25 '15 at 04:50 AM

You'd do it by getting the actor location just before the fall and then once the falling has started, You could just "Set Actor Location" to that on a tick. There's plenty of other ways you could do this however :>

avatar image AngryAndi Aug 09 '16 at 02:26 PM

Damn , many thanks for this wonderfull suggestions , i was trying a lot of bull**** before stumbling over this thread . So theres the Launch Character node and all my wishes where granted ( didnt even know there was this node xD )

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

If you want an impact based reaction dependent on existing velocity the projectile blueprint in the fps template does just that.

more ▼

answered Apr 16 '14 at 02:35 PM

avatar image

FlyingMongoose
11 1 3 4

avatar image letoast Jul 03 '14 at 12:10 PM

No it doesn't. "Add Impulse at Location" does not move the character.

(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