Announcement

Collapse
No announcement yet.

Destroy Box collision?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Destroy Box collision?

    Hi I have set up my NPC with a box collision that when it overlaps with the player it decreases his health. The only problem is even after the NPC's are dead if the player walks over the dead bodies the box collision is still there and giving damage to the player. I'm trying to figure a way to have the box collision destroy its self and not the NPC after the NPC dies so the player can walk over the dead body and not receive damage.

    This is the blueprint I'm using to cause damage.
    Click image for larger version

Name:	damage.JPG
Views:	1
Size:	63.0 KB
ID:	1159459


    and this is the blueprint I am using to kill the NPC
    Click image for larger version

Name:	Npc die.JPG
Views:	1
Size:	71.6 KB
ID:	1159460

    #2
    There should be an option to DestoryComponent(box) which will remove just the collision box and leave the character.

    Comment


      #3
      That worked perfectly thanks

      Comment

      Working...
      X