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"

Destroy ragdoll body after thirty seconds

What should I do to delete a ragdoll body after 30 seconds? This is the code I use for ragdoll physics https://www.dropbox.com/s/4ogepr0quox4nrn/Cattura.PNG?dl=0

Product Version: UE 4.21
Tags:
more ▼

asked Feb 28 '19 at 01:56 AM in Blueprint Scripting

avatar image

andrymas
1 1 1

avatar image rokkie199 Mar 01 '19 at 02:49 AM

Its possible to upload images directly into the comment, no need to use dropbox, can't really help further than what mrteuy already said without more details or seeing the picture.

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

1 answer: sort voted first

Could be just me, but that image is completely unreadable. Regardless, delay node for 30 seconds, destroy actor.

more ▼

answered Feb 28 '19 at 04:08 AM

avatar image

mrteuy
146 2 2 4

avatar image andrymas Feb 28 '19 at 07:22 PM

This is a problem because the script is in the weapon

avatar image mrteuy Mar 01 '19 at 03:15 AM

It most likely has a connection to a parent object, I'm guessing. Try Get Owner and destroy that. This all depends on your object hierarchy, however, but in some way, should be able to back up to a parent.

avatar image mrteuy Mar 01 '19 at 03:16 AM

Or, if the weapon is shooting another object, use the collision actions to handle which object to destroy.

(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