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"

killing pawn but capsule still follows player actor around

Folks,

After I kill off a NPC, it goes to ragdoll, but I suspect that it's capsule still follows the player around because it keeps getting blocked by something I can't see.

I can destroy the capsule but then when I stop the mesh simulation, it falls through the ground.

The simulation makes the NPC ragdoll wither around, which is fine for a few seconds, but then I want to stop the sim and just have the NPC lay where it is and do something about the capsule so that it isn't having any collision.

-Sterling

Product Version: UE 4.9
Tags:
more ▼

asked Oct 04 '15 at 02:19 AM in Blueprint Scripting

avatar image

SterlingY
210 28 34 49

avatar image jayice Oct 04 '15 at 02:52 AM

turn off the simulation of physics for the mesh, and then kill the capsule?

just a thought,

Jay

IceWare

avatar image SterlingY Oct 06 '15 at 04:53 AM

That didn't solve the problem. I'm still at a loss, but I know a bit more. my NPC blueprint has the character's capsule as its root object. After I've called to destroy it, my player character can still run into it, and the error is telling me that it is in the process of being destroyed, even though I may have done so 10 seconds earlier.

-Sterling

avatar image jayice Oct 06 '15 at 05:01 AM

sterling,

Can you change the "root" object for the NPC? Such that nothing is dependent on the Capsule?

It may be (and I don't know, just speculating) that the capsule is not being removed because other "non-destroyed" objects are dependent on it.

avatar image SterlingY Oct 06 '15 at 05:10 AM

Jayice,

I assumed the same, but I can't make an empty actor the root for some reason. I'm told that the capsule is inherited. If I destroy the entire NPC, then I don't have any dead bodies laying around ;)

I could turn off all of it's collision, but then it's still following me around, not that should affect anything, just seems sloppy.

avatar image Allena.Hail Jun 22 '16 at 12:56 AM

Hey Sterling,

Did you figure this out? I'm having a similar problem. :/

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

2 answers: sort voted first

After looking at my BP from all those months ago, this is what I did:

I put a notify on the animation asset that plays the death motion (I opted not to use ragdoll, for other reasons)

The notify sends a trigger that disables the NPC's capsule collision.

alt text

There is an additional isDead variable being set in there, which is for my use only and has nothing to do with disabling the capsule. You don't need that node.

If this helps, send some karma my way :)

-S

more ▼

answered Jun 22 '16 at 02:00 AM

avatar image

SterlingY
210 28 34 49

avatar image Allena.Hail Jun 22 '16 at 05:25 PM

Ah, I don't think that fixed my problem. Probably because of the way I'm having the AI move. Thank you anyway!

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

hi here you have the answer destroy the capsule component of the enemy and no longer give you greetingsalt text

more ▼

answered Nov 22 '18 at 01:31 AM

avatar image

seifer235
1

(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