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"

How to enable Ragdoll during gameplay?

How do i enable ragdoll for my skeletal mesh character during gameplay? Like while i'm playing, i wanna hit him and it'll activate ragdoll for 4 seconds and than get back up. How would i do that?

Product Version: Not Selected
more ▼

asked Jun 17 '14 at 10:03 PM in Blueprint Scripting

avatar image

222 48 62 79

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

2 answers: sort voted first

Get your character's Mesh and call the following functions (all set to true): SetAllBodiesSimulatePhysics, then SetSimulatePhysics, then WakeAllRigidBodies.

Note that your character's mesh must have a Physics Asset assigned and valid.

To revert from a ragdoll: I'm not sure, but maybe calling those 2 first functions (passing False this time) will work.

more ▼

answered Jun 17 '14 at 11:08 PM

avatar image

1.2k 58 61 253

avatar image gotgrassct Jun 17 '14 at 11:16 PM

I Would like to do it in Blueprint. can u give me an example?

avatar image rocketman Jun 01 '16 at 10:01 PM

alt text

123.png (74.8 kB)
avatar image Ixiguis Jun 17 '14 at 11:57 PM

All those nodes are in blueprint :) Right-click an empty area in your character's blueprint graph, add a Get Mesh, and draw those 3 functions from it.

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

Also this guy made a tutorial series about this! Check it out :)

Character ragdoll physics and animation: http://www.youtube.com/playlist?list=PLT4SeajOa6mZt6RFYJT5R6M0vdoSgWLO5

more ▼

answered Jun 02 '16 at 07:57 PM

avatar image

701 28 8 51

(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