in one of my shooter projects, i have an npc that can be shot and killed. It then applies physics to the mesh, fizzles out its material, and destroys it. Now occasionally, One of the npcs wont get destroyed, it just has a seizure on the ground, and then Ill get a bunch of errors from the widget blueprint for its healthbar that the actor is pending kill. It seems to know that DestroyActor was called, but the actor is not actually getting destroyed. Any Ideas?
Maybe adding an IsValid check will both prevent the widget error and allow the destroy to finish? hopefully.
it turned out to be a logic error i fixed it. thanks tho